Assembly: Microsoft.Synchronization (in microsoft.synchronization.dll)
/** @delegate */ public delegate boolean FilterRequestCallback ( Object filter, FilteringType filterType )
The filter that is specified by the destination provider. This filter is passed to the source provider to be used during change enumeration.
Return ValueTrue when the filter specified by filter is supported by the source provider. Otherwise, false.
FilterRequestCallback is implemented by Sync Framework.
Filter negotiation is achieved by using the following steps:
Before the source provider begins enumerating changes, Sync Framework starts filter negotiation by calling the SpecifyFilter method of the IRequestFilteredSync interface that the destination provider implemented.
During processing of SpecifyFilter, the destination provider passes filters to the FilterRequestCallback that is specified by Sync Framework.
During processing of FilterRequestCallback, Sync Frameworkk calls the TryAddFilter method of the ISupportFilteredSync interface implemented by the source provider. If the source provider does not support the requested filter, the destination provider can continue to request filters until it finds one that is supported.
When a filter has been successfully negotiated, the source provider uses it to determine which items to include during change enumeration.