Share via


File.Author Property

Gets a value that specifies the user who added the file.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public ReadOnly Property Author As User
    Get
'Usage
Dim instance As File
Dim value As User

value = instance.Author
[RemoteAttribute]
public User Author { get; }

Property Value

Type: Microsoft.SharePoint.Client.User
Returns a User instance representing the user who added the file.

Exceptions

Exception Condition
[System.IO.FileNotFoundException]

File cannot be found. Error code: -2147024894.

[System.UnauthorizedAccessException]

The current user has insufficient permissions. Error code: -2147024891.

See Also

Reference

File Class

File Members

Microsoft.SharePoint.Client Namespace