GetFullEnumerationChangeBatch 方法

在派生类中重写时,获取作为完全枚举一部分的变更批,该变更批中包含 ID 大于指定下限的项的项元数据。

命名空间:  Microsoft.Synchronization
程序集:  Microsoft.Synchronization(在 Microsoft.Synchronization.dll 中)

语法

声明
Public MustOverride Function GetFullEnumerationChangeBatch ( _
    batchSize As UInteger, _
    lowerEnumerationBound As SyncId, _
    knowledgeForDataRetrieval As SyncKnowledge, _
    <OutAttribute> ByRef changeDataRetriever As Object _
) As FullEnumerationChangeBatch
用法
Dim instance As KnowledgeSyncProvider
Dim batchSize As UInteger
Dim lowerEnumerationBound As SyncId
Dim knowledgeForDataRetrieval As SyncKnowledge
Dim changeDataRetriever As Object
Dim returnValue As FullEnumerationChangeBatch

returnValue = instance.GetFullEnumerationChangeBatch(batchSize, _
    lowerEnumerationBound, knowledgeForDataRetrieval, _
    changeDataRetriever)
public abstract FullEnumerationChangeBatch GetFullEnumerationChangeBatch(
    uint batchSize,
    SyncId lowerEnumerationBound,
    SyncKnowledge knowledgeForDataRetrieval,
    out Object changeDataRetriever
)
public:
virtual FullEnumerationChangeBatch^ GetFullEnumerationChangeBatch(
    unsigned int batchSize, 
    SyncId^ lowerEnumerationBound, 
    SyncKnowledge^ knowledgeForDataRetrieval, 
    [OutAttribute] Object^% changeDataRetriever
) abstract
abstract GetFullEnumerationChangeBatch : 
        batchSize:uint32 * 
        lowerEnumerationBound:SyncId * 
        knowledgeForDataRetrieval:SyncKnowledge * 
        changeDataRetriever:Object byref -> FullEnumerationChangeBatch 
public abstract function GetFullEnumerationChangeBatch(
    batchSize : uint, 
    lowerEnumerationBound : SyncId, 
    knowledgeForDataRetrieval : SyncKnowledge, 
    changeDataRetriever : Object
) : FullEnumerationChangeBatch

参数

返回值

类型:Microsoft.Synchronization. . :: . .FullEnumerationChangeBatch
作为完全枚举一部分的变更批,该变更批包含 ID 大于指定下限的项的项元数据。

注释

此方法在遗忘知识恢复期间由 Sync Framework 调用。

此方法按照项 ID 的排序顺序枚举项 ID 等于或大于 lowerEnumerationBound 的变更。这使 Sync Framework 能够确定目标提供程序中的哪些项已被删除但又被源提供程序遗忘。 此外,此方法还可以向批中添加变更,这些变更按项 ID 排序、所具有的项 ID 小于 lowerEnumerationBound 且未包含在目标知识中。

实现方注释

如果在此批之后再无变更要发送,则必须将返回的变更批的 IsLastBatch 设置为 true。否则,Sync Framework 将再次调用 GetFullEnumerationChangeBatch 来检索另一个变更批。

对于将项数据与项变更元数据一起发送的提供程序,可以使用 knowledgeForDataRetrieval 来确定是否有必要发送项数据。当项变更包含在 knowledgeForDataRetrieval 中时,不必发送项数据。

请参阅

参考

KnowledgeSyncProvider类

KnowledgeSyncProvider 成员

Microsoft.Synchronization 命名空间

其他资源

恢复过期副本