SP.ListItem.file Property

Applies to: SharePoint Foundation 2010

In this article
Property Value
Applies To
Remarks

Gets the file that is represented by the item from a document library.

var value = SP.ListItem.get_file();

Property Value

Type: SP.File

Applies To

SP.ListItem Class

Remarks

It must be null if the parent list is not a document library or FileSystemObjectType is Folder.

See Also

Reference

SP.ListItem Methods

SP.ListItem Properties

SP Namespace