Share via


SyncKnowledge.RemoveMarker Method

Removes a marker of the specified type from the specified item.

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

Syntax

'Declaration
Public Sub RemoveMarker ( _
    markerType As MarkerType, _
    itemId As SyncId _
)
'Usage
Dim instance As SyncKnowledge
Dim markerType As MarkerType
Dim itemId As SyncId

instance.RemoveMarker(markerType, itemId)
public void RemoveMarker (
    MarkerType markerType,
    SyncId itemId
)
public:
void RemoveMarker (
    MarkerType markerType, 
    SyncId^ itemId
)
public void RemoveMarker (
    MarkerType markerType, 
    SyncId itemId
)
public function RemoveMarker (
    markerType : MarkerType, 
    itemId : SyncId
)

Parameters

  • markerType
    The type of marker to remove.
  • itemId
    The ID of the item to be looked up.

Exceptions

Exception type Condition

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.

InvalidKnowledgeMarkerException

The knowledge object contains items that are marked with a type of marker other than markerType.

See Also

Reference

SyncKnowledge Class
SyncKnowledge Members
Microsoft.Synchronization Namespace