SP.ListItem.file Property

SharePoint 2010

Last modified: March 07, 2010

Applies to: SharePoint Foundation 2010

In this article
Property Value
Applies To

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

var value = SP.ListItem.get_file();

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