GetChangeBatch 方法
在給定批次大小、目的地知識和變更資料擷取器參數時,取得要同步處理的變更批次。
命名空間: Microsoft.Synchronization.Data
組件: Microsoft.Synchronization.Data (在 Microsoft.Synchronization.Data.dll 中)
語法
'宣告
Public Overrides Function GetChangeBatch ( _
batchSize As UInteger, _
destinationKnowledge As SyncKnowledge, _
<OutAttribute> ByRef changeDataRetriever As Object _
) As ChangeBatch
'用途
Dim instance As RelationalSyncProvider
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
SyncKnowledge 物件,此物件包含提供者對於套用變更之遠端存放區具備的相關知識。
- changeDataRetriever
型別:System. . :: . .Object%
將用來擷取已修改資料的物件。
傳回值
型別:Microsoft.Synchronization. . :: . .ChangeBatch
包含要同步處理之變更批次的 ChangeBatch 物件。
例外
例外狀況 | 條件 |
---|---|
ArgumentNullException | destinationKnowledge 是 null Nothing nullptr unit null 參考 (在 Visual Basic 中為 Nothing) 。 |
ObjectDisposedException | 這個 RelationalSyncProvider 已被處置。 |
DbOutdatedSyncException | 對等項目擁有過時的中繼資料。 |