SPFile.DocumentLibrary property

Gets the parent library of the SPFile.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public SPDocumentLibrary DocumentLibrary { get; }

Property value

Type: Microsoft.SharePoint.SPDocumentLibrary
The parent library of the SPFile.
Show: