Item Property

SPFile.Item Property

Gets the list item object that corresponds to the file 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

public SPListItem Item { get; }

Property Value

Type: Microsoft.SharePoint.SPListItem
An SPListItem object that represents the list item.

The Item property throws an exception if the document does not belong to a document library.

© 2016 Microsoft