Share via


SP.File Properties

Applies to: SharePoint Foundation 2010

The following table lists the properties of the SP.File class.

Properties

Name

Description

author

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

checkedOutByUser

Gets a value that returns the user who has checked out the file.

checkInComment

Gets a value that returns the comment used when a document is checked in to a document library.

checkOutType

Gets a value that indicates how the file is checked out of a document library.

customizedPageStatus

Gets a value that specifies the customization status of the file.

eTag

Gets a value that specifies the ETag value.

exists

Gets a value that specifies whether the file exists.

level

Gets a value that specifies the publishing level of the file.

listItemAllFields

Gets a value that specifies the list item field values for the list item corresponding to the file.

lockedByUser

Gets a value that returns the user that owns the current lock on the file.

majorVersion

Gets a value that specifies the major version of the file.

minorVersion

Gets a value that specifies the minor version of the file.

modifiedBy

Gets a value that returns the user who last modified the file.

name

Gets the name of the file including the extension.

serverRelativeUrl

Gets the relative URL of the file based on the URL for the server.

timeCreated

Gets a value that specifies when the file was created.

timeLastModified

Gets a value that specifies when the file was last modified.

title

Gets a value that specifies the display name of the file.

uiVersion

Gets a value that specifies the implementation-specific version identifier of the file.

uiVersionLabel

Gets a value that specifies the implementation-specific version identifier of the file.

versions

Gets a value that returns a collection of file version objects that represent the versions of the file.

Applies To

SP.File Class

See Also

Reference

SP.File Methods

SP Namespace