SyncKnowledge::ContainsMarker Method

Indicates whether the specified item is marked with the specified marker type.

Namespace:  Microsoft.Synchronization
Assembly:  Microsoft.Synchronization (in Microsoft.Synchronization.dll)

public:
bool ContainsMarker(
	MarkerType markerType, 
	SyncId^ itemId
)

Parameters

markerType
Type: Microsoft.Synchronization::MarkerType
The type of marker to look up.
itemId
Type: Microsoft.Synchronization::SyncId
The ID of the item to be looked up.

Return Value

Type: System::Boolean
true when itemId is marked with the specified marker type. Otherwise, false.

ExceptionCondition
ArgumentOutOfRangeException

markerType is not a valid value.

InvalidKnowledgeVersionException

The CompatibilityLevel property is less than SyncFrameworkVersion2.

SyncIdFormatMismatchException

itemId is not in the ID format specified for this knowledge object.

InvalidOperationException

This SyncKnowledge object is not initialized.

When custom filters are used, the source provider must call ContainsMarker with markerType set to AllChangeUnitsRequired, to check whether items that are added to a change batch require that all change units are included. When an item is marked as requiring all change units, the source provider must include all change units that pass the filter for that item.

Show: