Share via


SPImportContext.RetainObjectIdentity property

Gets whether a new object should be created with the original GUID identifier.

Namespace:  Microsoft.SharePoint.Deployment
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property RetainObjectIdentity As Boolean
    Get
    Friend Set
'Usage
Dim instance As SPImportContext
Dim value As Boolean

value = instance.RetainObjectIdentity
public bool RetainObjectIdentity { get; internal set; }

Property value

Type: System.Boolean
true if the new object is created by using the original GUID; false if the new object is created by using a new GUID.

Remarks

The default return value is false.

See also

Reference

SPImportContext class

SPImportContext members

Microsoft.SharePoint.Deployment namespace