Share via


SPFile.DocumentLibrary property

Gets the parent library of the SPFile.

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

Syntax

'Declaration
Public ReadOnly Property DocumentLibrary As SPDocumentLibrary
    Get
'Usage
Dim instance As SPFile
Dim value As SPDocumentLibrary

value = instance.DocumentLibrary
public SPDocumentLibrary DocumentLibrary { get; }

Property value

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

See also

Reference

SPFile class

SPFile members

Microsoft.SharePoint namespace