FeedSyncServices.GetChangeBatch 方法

从已加载的 FeedSync 馈送获取变更批。变更批包含某些项的项元数据,这些项不包含在来自目标提供程序的指定知识中。

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

语法

声明
Public Function GetChangeBatch ( _
    batchSize As UInteger, _
    destinationKnowledge As SyncKnowledge, _
    filterInfo As FilterInfo, _
    itemMetadataFilterDelegate As ItemMetadataFilter, _
    <OutAttribute> ByRef changeDataRetriever As Object _
) As ChangeBatch
用法
Dim instance As FeedSyncServices
Dim batchSize As UInteger
Dim destinationKnowledge As SyncKnowledge
Dim filterInfo As FilterInfo
Dim itemMetadataFilterDelegate As ItemMetadataFilter
Dim changeDataRetriever As Object
Dim returnValue As ChangeBatch

returnValue = instance.GetChangeBatch(batchSize, destinationKnowledge, filterInfo, itemMetadataFilterDelegate, changeDataRetriever)
public ChangeBatch GetChangeBatch (
    uint batchSize,
    SyncKnowledge destinationKnowledge,
    FilterInfo filterInfo,
    ItemMetadataFilter itemMetadataFilterDelegate,
    out Object changeDataRetriever
)
public:
ChangeBatch^ GetChangeBatch (
    unsigned int batchSize, 
    SyncKnowledge^ destinationKnowledge, 
    FilterInfo^ filterInfo, 
    ItemMetadataFilter^ itemMetadataFilterDelegate, 
    [OutAttribute] Object^% changeDataRetriever
)
public ChangeBatch GetChangeBatch (
    UInt32 batchSize, 
    SyncKnowledge destinationKnowledge, 
    FilterInfo filterInfo, 
    ItemMetadataFilter itemMetadataFilterDelegate, 
    /** @attribute OutAttribute() */ /** @ref */ Object changeDataRetriever
)
JScript does not support passing value-type arguments by reference.

参数

  • batchSize
    要创建的批的大小。
  • destinationKnowledge
    来自目标提供程序的知识。
  • filterInfo
    用于控制哪些项要包含在变更批中的筛选器信息。可为 null 引用(在 Visual Basic 中为 Nothing)。
  • itemMetadataFilterDelegate
    用于动态筛选添加到变更批中的项的委托。可为 null 引用(在 Visual Basic 中为 Nothing)。
  • changeDataRetriever
    返回可由目标提供程序用于从源提供程序检索项数据的对象。该对象可以是 IChangeDataRetriever 对象,也可以是提供程序特定的对象。

返回值

包含某些项的项元数据的变更批,这些项不包含在来自目标提供程序的指定知识中。

备注

此方法帮助同步提供程序实现 GetChangeBatch 方法。如果 filterInfo 不为 null 引用(在 Visual Basic 中为 Nothing),则该信息用于筛选添加到变更批中的项。如果 itemMetadataFilterDelegate 不为 null 引用(在 Visual Basic 中为 Nothing),则在每个项添加到变更批中之前都会调用一次委托。

请参阅

参考

FeedSyncServices 类
FeedSyncServices 成员
Microsoft.Synchronization.FeedSync 命名空间