共用方式為


SPFile.DocumentLibrary property

取得SPFile的父代程式庫。

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

Syntax

'宣告
Public ReadOnly Property DocumentLibrary As SPDocumentLibrary
    Get
'用途
Dim instance As SPFile
Dim value As SPDocumentLibrary

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

Property value

Type: Microsoft.SharePoint.SPDocumentLibrary
SPFile父程式庫。

請參閱

參照

SPFile class

SPFile members

Microsoft.SharePoint namespace