AnchorEnumerationSimpleSyncProvider Class

Represents a provider for replicas that track changes by using anchors.

Inheritance Hierarchy

System.Object
  Microsoft.Synchronization.SyncProvider
    Microsoft.Synchronization.SimpleProviders.SimpleSyncProvider
      Microsoft.Synchronization.SimpleProviders.AnchorEnumerationSimpleSyncProvider

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

Syntax

'Declaration
Public MustInherit Class AnchorEnumerationSimpleSyncProvider _
    Inherits SimpleSyncProvider
'Usage
Dim instance As AnchorEnumerationSimpleSyncProvider
public abstract class AnchorEnumerationSimpleSyncProvider : SimpleSyncProvider
public ref class AnchorEnumerationSimpleSyncProvider abstract : public SimpleSyncProvider
[<AbstractClassAttribute>]
type AnchorEnumerationSimpleSyncProvider =  
    class
        inherit SimpleSyncProvider
    end
public abstract class AnchorEnumerationSimpleSyncProvider extends SimpleSyncProvider

The AnchorEnumerationSimpleSyncProvider type exposes the following members.

Constructors

  Name Description
Protected method AnchorEnumerationSimpleSyncProvider Initializes a new instance of the AnchorEnumerationSimpleSyncProvider class.

Top

Properties

  Name Description
Public property Configuration When overridden in a derived class, gets a KnowledgeSyncProviderConfiguration object that represents configuration information for a provider, such as the conflict resolution policy. (Inherited from SimpleSyncProvider.)
Public property DestinationCallbacks When overridden in a derived class, gets a SyncCallbacks object that is used to dispatch a synchronization event. (Inherited from SimpleSyncProvider.)
Public property IdFormats When overridden in a derived class, gets a SyncIdFormatGroup object that represents the format of replica and item IDs. (Inherited from SimpleSyncProvider.)
Public property MetadataSchema When overridden in a derived class, gets an ItemMetadataSchema object that represents the metadata schema for an item. (Inherited from SimpleSyncProvider.)
Public property ProviderVersion When overridden in a derived class, gets the version number for the simple provider. (Inherited from SimpleSyncProvider.)

Top

Methods

  Name Description
Public method BeginSession When overridden in a derived class, called by the Sync Framework runtime at the start of each session. (Inherited from SimpleSyncProvider.)
Public method DeleteItem When overridden in a derived class, called by the Sync Framework runtime to delete an item from the destination store. (Inherited from SimpleSyncProvider.)
Public method EndSession When overridden in a derived class, called by the Sync Framework runtime at the end of each session unless a session is terminated because of an exception. (Inherited from SimpleSyncProvider.)
Public method EnumerateChanges When overridden in a derived class, enumerates changes from a replica that occurred since the specified anchor value.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerationAnchor When overridden in a derived class, returns an enumeration anchor that is used to determine the set of changes to synchronize during a session.
Public method GetHashCode (Inherited from Object.)
Public method GetMetadataStore When overridden in a derived class, called by the Sync Framework runtime to return a MetadataStore object for a replica. (Inherited from SimpleSyncProvider.)
Public method GetType (Inherited from Object.)
Public method InsertItem When overridden in a derived class, called by the Sync Framework runtime to insert an item into the destination store. (Inherited from SimpleSyncProvider.)
Public method LoadChangeData When overridden in a derived class, called by the Sync Framework runtime to load the change data for the item with the specified key. (Inherited from SimpleSyncProvider.)
Protected method MemberwiseClone (Inherited from Object.)
Public method OnChangeDetectionCompleted When overridden in a derived class, raises the ChangeDetectionCompleted event. (Inherited from SimpleSyncProvider.)
Public method OnItemConflicting When overridden in a derived class, raises the ItemConflicting event. (Inherited from SimpleSyncProvider.)
Public method OnItemConstraint When overridden in a derived class, raises the ItemConstraint event. (Inherited from SimpleSyncProvider.)
Public method OnMetadataStoreInitialized When overridden in a derived class, raises the MetadataStoreInitialized event. (Inherited from SimpleSyncProvider.)
Public method ToString (Inherited from Object.)
Public method UpdateItem When overridden in a derived class, called by the Sync Framework runtime to update an item in the destination store. (Inherited from SimpleSyncProvider.)

Top

Events

  Name Description
Public event ChangeDetectionCompleted Occurs when change detection is complete for a source provider. (Inherited from SimpleSyncProvider.)
Public event ItemConflicting Occurs when Sync Framework detects that an item being processed is involved in a concurrency conflict. (Inherited from SimpleSyncProvider.)
Public event ItemConstraint Occurs when Sync Framework detects that an item being processed is involved in a constraint conflict. (Inherited from SimpleSyncProvider.)
Public event MetadataStoreInitialized Occurs when the metadata store that is associated with a provider is initialized. (Inherited from SimpleSyncProvider.)

Top

Remarks

The simple provider API is designed primarily for two types of replicas:

  • Replicas that do not support any kind of change tracking. This type of replica uses a full enumeration provider (FullEnumerationSimpleSyncProvider), which enumerates all items from the source replica every time synchronization occurs.

  • Replicas that support anchor-based change tracking. This type of replica uses an anchor-based provider (AnchorEnumerationSimpleSyncProvider), which enumerates the items from the source replica that changed after a specific anchor was set, which is typically a point in time.

For more information about simple providers, see How to: Create a Managed Simple Provider. For more information about custom providers in general, see Custom Provider Fundamentals, especially the section "Deciding Between a Simple Provider and a Standard Provider".

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Synchronization.SimpleProviders Namespace