共用方式為


SPChangeToken.ScopeId property

取得清單、 網站、 網站集合或這是有效的變更語彙基元的內容資料庫物件的 GUID。

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

Syntax

'宣告
Public ReadOnly Property ScopeId As Guid
    Get
'用途
Dim instance As SPChangeToken
Dim value As Guid

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

Property value

Type: System.Guid
識別物件的 GUID。

備註

這個屬性的值必須符合SPListSPWebSPSite或您程式設計的SPContentDatabase物件的ID屬性值。例如,如果您將此變更語彙基元傳遞至物件oList的GetChanges方法,語彙基元的ScopeId屬性的值必須由oList.ID所傳回的值相同。

這項規則的唯一例外是您可以變更語彙基元的內容資料庫傳遞給SPList、 SPWeb或SPSite類別的任何執行個體的GetChanges方法,只要目標清單、 網站或網站集合會儲存在內容識別語彙基元的ScopeId屬性中的資料庫。

請參閱

參照

SPChangeToken class

SPChangeToken members

Microsoft.SharePoint namespace