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
)
type ItemFilterCallback = 
    delegate of 
        itemMetadata:ItemMetadata -> bool
JScript supports the use of delegates, but not the declaration of new ones.

Parameters

Return Value

Type: System.Boolean
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