UnmanagedSyncProviderWrapper::GetChangeBatch Method

Gets a batch of changes from the unmanaged provider.

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

public:
virtual ChangeBatch^ GetChangeBatch(
	unsigned int batchSize, 
	SyncKnowledge^ destinationKnowledge, 
	[OutAttribute] Object^% changeDataRetriever
) override

Parameters

batchSize
Type: System::UInt32
The number of changes to include in the returned change batch.
destinationKnowledge
Type: Microsoft.Synchronization::SyncKnowledge
The knowledge of the destination replica.
changeDataRetriever
Type: System::Object%
Returns an object that can be used to retrieve change data.

Return Value

Type: Microsoft.Synchronization::ChangeBatch
The batch of changes from the unmanaged provider.

ExceptionCondition
InvalidOperationException

This UnmanagedSyncProviderWrapper object is not initialized.

ArgumentNullException

destinationKnowledge is a nullptr.

This method wraps the unmanaged IKnowledgeSyncProvider::GetChangeBatch method.

If a change data retriever adapter was specified, this method converts the change data retriever that is returned by the unmanaged provider to its managed representation before it returns changeDataRetriever. Otherwise, the change data retriever is just returned with no conversion.

Show: