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)

Syntax

'Declaration
Public Sub SetLastBatch
'Usage
Dim instance As ChangeBatchBase

instance.SetLastBatch()
public void SetLastBatch()
public:
void SetLastBatch()
member SetLastBatch : unit -> unit 
public function SetLastBatch()

Exceptions

Exception Condition
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.

Remarks

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.

See Also

Reference

ChangeBatchBase Class

Microsoft.Synchronization Namespace