共用方式為


SPFile.InDocumentLibrary property

取得布林值,這個值,指出檔案是否屬於文件庫。

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

Syntax

'宣告
Public ReadOnly Property InDocumentLibrary As Boolean
    Get
'用途
Dim instance As SPFile
Dim value As Boolean

value = instance.InDocumentLibrary
public bool InDocumentLibrary { get; }

Property value

Type: System.Boolean
true如果檔案屬於文件庫。否則, false。

請參閱

參照

SPFile class

SPFile members

Microsoft.SharePoint namespace