Compartilhar via


SPFile.Author Property

Gets the user who uploaded the document to the server or created the document on the server.

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

Syntax

'Declaration
<ClientCallableAttribute> _
Public ReadOnly Property Author As SPUser
    Get
'Usage
Dim instance As SPFile
Dim value As SPUser

value = instance.Author
[ClientCallableAttribute]
public SPUser Author { get; }

Property Value

Type: Microsoft.SharePoint.SPUser
An SPUser object that represents the user who uploaded or created the document.

See Also

Reference

SPFile Class

SPFile Members

Microsoft.SharePoint Namespace