GetChangeBatch 方法
從 Unmanaged 提供者中取得變更批次。
命名空間: Microsoft.Synchronization
組件: Microsoft.Synchronization (在 Microsoft.Synchronization.dll 中)
語法
'宣告
Public Overrides Function GetChangeBatch ( _
batchSize As UInteger, _
destinationKnowledge As SyncKnowledge, _
<OutAttribute> ByRef changeDataRetriever As Object _
) As ChangeBatch
'用途
Dim instance As UnmanagedSyncProviderWrapper
Dim batchSize As UInteger
Dim destinationKnowledge As SyncKnowledge
Dim changeDataRetriever As Object
Dim returnValue As ChangeBatch
returnValue = instance.GetChangeBatch(batchSize, _
destinationKnowledge, changeDataRetriever)
public override ChangeBatch GetChangeBatch(
uint batchSize,
SyncKnowledge destinationKnowledge,
out Object changeDataRetriever
)
public:
virtual ChangeBatch^ GetChangeBatch(
unsigned int batchSize,
SyncKnowledge^ destinationKnowledge,
[OutAttribute] Object^% changeDataRetriever
) override
abstract GetChangeBatch :
batchSize:uint32 *
destinationKnowledge:SyncKnowledge *
changeDataRetriever:Object byref -> ChangeBatch
override GetChangeBatch :
batchSize:uint32 *
destinationKnowledge:SyncKnowledge *
changeDataRetriever:Object byref -> ChangeBatch
public override function GetChangeBatch(
batchSize : uint,
destinationKnowledge : SyncKnowledge,
changeDataRetriever : Object
) : ChangeBatch
參數
- batchSize
型別:System. . :: . .UInt32
要包含在傳回之變更批次內的變更數目。
- destinationKnowledge
型別:Microsoft.Synchronization. . :: . .SyncKnowledge
目的地複寫的知識。
- changeDataRetriever
型別:System. . :: . .Object%
傳回可用來擷取變更資料的物件。
傳回值
型別:Microsoft.Synchronization. . :: . .ChangeBatch
Unmanaged 提供者的變更批次。
例外
例外狀況 | 條件 |
---|---|
InvalidOperationException | 這個 UnmanagedSyncProviderWrapper 物件尚未初始化。 |
ArgumentNullException | destinationKnowledge 是 null Nothing nullptr unit null 參考 (在 Visual Basic 中為 Nothing) 。 |
備註
這個方法會包裝 Unmanaged IKnowledgeSyncProvider::GetChangeBatch 方法。
如果指定了變更資料擷取器配接器,這個方法就會將 Unmanaged 提供者所傳回的變更資料擷取器轉換成其 Managed 表示,然後再傳回 changeDataRetriever。否則,只會傳回未經任何轉換的變更資料擷取器。
請參閱
參考
UnmanagedSyncProviderWrapper類別