File Properties

Include Protected Members
Include Inherited Members

The File type exposes the following members.

Properties

  Name Description
Public property Author Gets a value that specifies the user who added the file.
Public property CheckedOutByUser Gets a value that returns the user who has checked out the file.
Public property CheckInComment Gets a value that returns the comment used when a document is checked into a document library.
Public property CheckOutType Gets a value that specifies the type of check out associated with the file.
Public property Context Returns the context that is associated with the client object. (Inherited from ClientObject.)
Public property CustomizedPageStatus Gets a value that specifies the customization status of the file.
Public property ETag Gets a value that specifies the ETag value.
Public property Exists Gets a value that specifies whether the file exists.
Public property Level Gets a value that specifies the publishing level of the file.
Public property ListItemAllFields Gets a value that specifies the list item field values for the list item corresponding to the file.
Public property LockedByUser Gets a value that returns the user that owns the current lock on the file.
Public property MajorVersion Gets a value that specifies the major version of the file.
Public property MinorVersion Gets a value that specifies the minor version of the file.
Public property ModifiedBy Gets a value that returns the user who last modified the file.
Public property Name Gets the name of the file including the extension.
Protected property ObjectData Gets the object data for the current client object. (Inherited from ClientObject.)
Public property ObjectVersion Gets a string that indicates the version of the current client object. This member is reserved for internal use and is not intended to be used directly from your code. (Inherited from ClientObject.)
Public property Path Tracks how a client object is created in the ClientRuntimeContext class, so that the object can be re-created on the server. This member is reserved for internal use and is not intended to be used directly from your code. (Inherited from ClientObject.)
Public property ServerObjectIsNull Gets the server object and returns null if the server object is null. (Inherited from ClientObject.)
Public property ServerRelativeUrl Gets the relative URL of the file based on the URL for the server.
Public property Tag Gets or sets data that is associated with the client object. (Inherited from ClientObject.)
Public property TimeCreated Gets a value that specifies when the file was created.
Public property TimeLastModified Gets a value that specifies when the file was last modified.
Public property Title Gets a value that specifies the display name of the file.
Public property UIVersion Gets a value that specifies the implementation-specific version identifier of the file.
Public property UIVersionLabel Gets a value that specifies the implementation-specific version identifier of the file.
Public property Versions Gets a value that returns a collection of file version objects that represent the versions of the file.

Top

See Also

Reference

File Class

Microsoft.SharePoint.Client Namespace