KnowledgeFragmentInspector.GetMarkers Method

Gets a list of item IDs that are marked with the specified marker type.

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

Syntax

'Declaration
Public Function GetMarkers ( _
    markerType As MarkerType _
) As ReadOnlyCollection(Of SyncId)
'Usage
Dim instance As KnowledgeFragmentInspector
Dim markerType As MarkerType
Dim returnValue As ReadOnlyCollection(Of SyncId)

returnValue = instance.GetMarkers(markerType)
public ReadOnlyCollection<SyncId> GetMarkers(
    MarkerType markerType
)
public:
ReadOnlyCollection<SyncId^>^ GetMarkers(
    MarkerType markerType
)
member GetMarkers : 
        markerType:MarkerType -> ReadOnlyCollection<SyncId> 
public function GetMarkers(
    markerType : MarkerType
) : ReadOnlyCollection<SyncId>

Parameters

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<SyncId>
A list of item IDs that are marked with the specified marker type.

Remarks

A SyncKnowledge object typically contains markers when custom filters are in use. For example, if an item was excluded by the filter and tracked as a ghost in the destination replica, the filter changes so that the item moves into the filter and so must be applied to the destination replica. However, the item enumerated by the source provider does not contain all the change units for the item. The item is marked as requiring that all change units be included when the source provider adds the item to a change batch. The source provider detects that this marker is set for the item, and includes all change units for that item. The destination provider, and then creates a complete item and applies it to the destination replica.

A SyncKnowledge object can contain markers of only one type.

See Also

Reference

KnowledgeFragmentInspector Class

Microsoft.Synchronization Namespace