Filtering Synchronization Data
Filtered synchronization is used to restrict synchronization to a subset of items, such as to only synchronize text files between two file folders, ignoring files of other types. The source provider applies a filter when it detects changes and adds only the items to a change batch that pass the filter.
Managed code Information about the filter that is used to create a change batch must be communicated by using a FilterInfo class. Custom implementations of this abstract class are not supported. The provider must create an ItemListFilterInfo object and attach it to the change batch by using ChangeBatch to create the change batch.
Unmanaged code Information about the filter used to create a change batch must be communicated by using an ISyncFilterInfo class. Custom implementations of this interface are not supported. The provider must create an ISyncFilterInfo object by using IProviderFilteredSyncServices::CreateFilterInfo. The filter information is attached to the change batch by using IProviderFilteredSyncServices::CreateFilteredEnumerationChangeBatch to create the change batch.