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)

public SPListItem ListItemAllFields { get; }

Property value

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