共用方式為


SPFile.UniqueId property

取得可唯一識別 [內容資料庫中的檔案的 GUID。

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

Syntax

'宣告
Public ReadOnly Property UniqueId As Guid
    Get
'用途
Dim instance As SPFile
Dim value As Guid

value = instance.UniqueId
public Guid UniqueId { get; }

Property value

Type: System.Guid
識別檔案的 GUID。

請參閱

參照

SPFile class

SPFile members

Microsoft.SharePoint namespace