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)
Syntax
'Declaration
Public ReadOnly Property ListItemAllFields As SPListItem
Get
'Usage
Dim instance As SPFile
Dim value As SPListItem
value = instance.ListItemAllFields
public SPListItem ListItemAllFields { get; }
Property value
Type: Microsoft.SharePoint.SPListItem
SPListItem
The list item that corresponds to the file.