Note
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Marks the specified item with the specified marker type.
Namespace: Microsoft.Synchronization
Assembly: Microsoft.Synchronization (in Microsoft.Synchronization.dll)
Syntax
'Declaration
Public Sub AddMarker ( _
markerType As MarkerType, _
itemId As SyncId _
)
'Usage
Dim instance As SyncKnowledge
Dim markerType As MarkerType
Dim itemId As SyncId
instance.AddMarker(markerType, itemId)
public void AddMarker(
MarkerType markerType,
SyncId itemId
)
public:
void AddMarker(
MarkerType markerType,
SyncId^ itemId
)
member AddMarker :
markerType:MarkerType *
itemId:SyncId -> unit
public function AddMarker(
markerType : MarkerType,
itemId : SyncId
)
Parameters
- markerType
Type: Microsoft.Synchronization.MarkerType
itemId is marked with this marker type.
- itemId
Type: Microsoft.Synchronization.SyncId
The ID of the item to mark with markerType.
Exceptions
| Exception | 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 already contains items that are marked with a type of marker other than markerType. |
| InvalidOperationException | This SyncKnowledge object is not initialized. |
Remarks
A SyncKnowledge object can contain markers of only one type. To change the type of markers contained in the knowledge object, RemoveAllChangeUnitsMarkers must be called before new markers are added.