共用方式為


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

參數

傳回值

型別:Microsoft.Synchronization. . :: . .ChangeBatch
包含要同步處理之變更批次的 ChangeBatch 物件。

例外

例外狀況 條件
ArgumentNullException

destinationKnowledge 是 null Nothing nullptr unit null 參考 (在 Visual Basic 中為 Nothing) 。

ObjectDisposedException

這個 RelationalSyncProvider 已被處置。

DbOutdatedSyncException

對等項目擁有過時的中繼資料。

請參閱

參考

RelationalSyncProvider類別

RelationalSyncProvider 成員

Microsoft.Synchronization.Data 命名空間