ChangeBatchBase::SetLastBatch Method

Sets a value that indicates that this is the last batch in the synchronization session.

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

public:
void SetLastBatch()

ExceptionCondition
ObjectDisposedException

This ChangeBatchBase has been disposed.

SyncInvalidOperationException

The current change requires full enumeration, the range is already defined, and the batch boundary is not infinity.

This method must be called on the last batch of changes sent by the source provider; otherwise, Sync Framework continues to request more change batches.

Show: