Sdílet prostřednictvím


ReplicaMetadata.ItemFilterCallback Delegate

Represents the method that will determine whether an item change should be included in a change batch.

Namespace: Microsoft.Synchronization.MetadataStorage
Assembly: Microsoft.Synchronization.MetadataStorage (in microsoft.synchronization.metadatastorage.dll)

Syntax

'Declaration
Public Delegate Function ItemFilterCallback ( _
    itemMetadata As ItemMetadata _
) As Boolean
'Usage
Dim instance As New ItemFilterCallback(AddressOf HandlerMethod)
public delegate bool ItemFilterCallback (
    ItemMetadata itemMetadata
)
public delegate bool ItemFilterCallback (
    ItemMetadata^ itemMetadata
)
/** @delegate */
public delegate boolean ItemFilterCallback (
    ItemMetadata itemMetadata
)
JScript supports the use of delegates, but not the declaration of new ones.

Parameters

  • itemMetadata
    Metadata for the item change.

Return Value

true to include the item change in the change batch; otherwise, false.

Remarks

This delegate is passed to ReplicaMetadata.GetFilteredChangeBatch to perform filtered synchronization. The metadata storage service calls this delegate one time for each item change that is detected during change detection. When the delegate is called, it can inspect the item change metadata and indicate whether the change should be included in the change batch.

See Also

Reference

Microsoft.Synchronization.MetadataStorage Namespace