共用方式為


SPFile.Exists property

取得布林值,這個值,指出檔案是否存在。

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

Syntax

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

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

Property value

Type: System.Boolean
true如果檔案存在。否則, false。

請參閱

參照

SPFile class

SPFile members

Microsoft.SharePoint namespace