SPImportSettings.UserInfoDateTime Property
Gets or sets a value that specifies the level of user information that is retained when content is imported.
Namespace: Microsoft.SharePoint.Deployment
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
Public Property UserInfoDateTime As SPImportUserInfoDateTimeOption
Get
Set
Dim instance As SPImportSettings
Dim value As SPImportUserInfoDateTimeOption
value = instance.UserInfoDateTime
instance.UserInfoDateTime = value
public SPImportUserInfoDateTimeOption UserInfoDateTime { get; set; }
Property Value
Type: Microsoft.SharePoint.Deployment.SPImportUserInfoDateTimeOption
An SPImportUserInfoDateTimeOption value.
Remarks
Following are the allowable values for this property as specified in the SPImportUserInfoDateTimeOption enum; the default falue is None.
ImportAll: Retains the original author/editor information, time/date stamp, and user lookup value.
None: (Default) Replaces the author and editor data with the Operator Account; creates a current (time of import) date/time stamp, and replaces user lookup value with an empty string ("").
ReplaceUserWithSystemAccount: Retains the original date/time stamp, but replaces the author and editor data with the System Account, and replaces user lookup values with an empty string ("").
Note
If you wish to retain the original source values for the CreatedBy, ModifiedBy, CreateTime, and ModifiedTime columns during import, you must set this property values to ImportAll.