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 | 对等方具有过时元数据。 |