Share via


SPChangeCollection.LastChangeToken Property

Gets the change token that corresponds to the last change in the collection.

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

Syntax

Public ReadOnly Property LastChangeToken As SPChangeToken
    Get

Dim instance As SPChangeCollection
Dim value As SPChangeToken

value = instance.LastChangeToken
public SPChangeToken LastChangeToken { get; }

Property Value

Type: Microsoft.SharePoint.SPChangeToken
An SPChangeToken object that represents the last change token.

Remarks

The change token that is returned is the value of the ChangeToken property of the SPChange object indexed at Count – 1 in the change collection. When you are fetching changes in batches, you can use this token as the starting point for the next batch. For an example, see the documentation for CountLimit.

See Also

Reference

SPChangeCollection Class

SPChangeCollection Members

Microsoft.SharePoint Namespace

CountLimit

Other Resources

Event Logs in Windows SharePoint Services