다음을 통해 공유


SPChangeToken.ScopeId Property

Gets the GUID of the list, Web site, site collection, or content database object for which this is a valid change token.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public ReadOnly Property ScopeId As Guid
    Get
'Usage
Dim instance As SPChangeToken
Dim value As Guid

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

Property Value

Type: System.Guid
A GUID that identifies the object.

Remarks

The value of this property must match the value of the ID property of the SPList, SPWeb, SPSite, or SPContentDatabase object that you are programming against. For example, if you are passing this change token to the GetChanges method of the object oList, the value of the token's ScopeId property must be the same as the value that is returned by oList.ID.

The one exception to this rule is that you can pass a change token for a content database to the GetChanges method of any instance of the SPList, SPWeb, or SPSite class as long as the target list, Web site, or site collection is stored in the content database that is identified in the token's ScopeId property.

See Also

Reference

SPChangeToken Class

SPChangeToken Members

Microsoft.SharePoint Namespace