SPFile.ListItemAllFields Property

Gets the SPListItem object that corresponds to this file, including all its field values, if the file belongs to a document library.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

[ClientCallableAttribute]
public SPListItem ListItemAllFields { get; }

Property Value

Type: Microsoft.SharePoint.SPListItem
SPListItem
The list item that corresponds to the file.
Show: