SPCopyDestination.CreatedBy property
Gets the user ID of the user who created the document.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public ReadOnly Property CreatedBy As Integer
Get
'Usage
Dim instance As SPCopyDestination
Dim value As Integer
value = instance.CreatedBy
public int CreatedBy { get; }
Property value
Type: System.Int32
A 32-bit integer that specifies the user ID.
Remarks
Use the CreatedBy property with the SPWeb.SiteUsers.GetByID method to return the SPUser object that represents the user who created the document
Examples
The following code returns the SPUser who created the document:
SPWeb.SiteUsers.GetByID(SPCopyDestination.CreatedBy)