SPPersistedObject.Clone Method

Returns a clone of the object that does not come from the in-memory cache, which enables calling code to help ensure thread safety.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Function Clone As Object
'Usage
Dim instance As SPPersistedObject
Dim returnValue As Object

returnValue = instance.Clone()
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public Object Clone()

Return Value

Type: System.Object
An object that provides a copy of the current persisted object.

Implements

ICloneable.Clone()

See Also

Reference

SPPersistedObject Class

SPPersistedObject Members

Microsoft.SharePoint.Administration Namespace