MetadataStore Class

When overridden, represents a metadata store and provides methods to obtain a replica metadata object. The replica metadata object is used to access the metadata for a specific replica. This is the abstract base class for all metadata stores that use the metadata storage service API.

System.Object
  Microsoft.Synchronization.MetadataStorage.MetadataStore
    Microsoft.Synchronization.MetadataStorage.SqlMetadataStore

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

public abstract class MetadataStore

The MetadataStore type exposes the following members.

  NameDescription
Protected methodMetadataStoreInitializes a new instance of the MetadataStore class.
Top

  NameDescription
Public methodBeginTransactionWhen overridden in a derived class, starts an explicit transaction on the metadata store that has the specified isolation level.
Public methodCommitTransactionWhen overridden in a derived class, commits an explicit transaction that has already started on the metadata store.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetReplicaMetadataWhen overridden in a derived class, gets the ReplicaMetadata object that represents the metadata for a particular replica.
Public methodGetSingleReplicaMetadataWhen overridden in a derived class, gets the metadata for the single replica contained in the metadata store.
Public methodGetType (Inherited from Object.)
Public methodInitializeReplicaMetadataWhen overridden in a derived class, creates, initializes, and saves new metadata for a replica.
Public methodIsTransactionActiveWhen overridden in a derived class, indicates whether an active transaction exists on the metadata store.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemoveReplicaMetadataWhen overridden in a derived class, removes all metadata associated with the specified replica.
Public methodRollbackTransactionCancels the current explicit transaction and rolls the metadata store back to the state it was in before the transaction was started.
Public methodToString (Inherited from Object.)
Top

This class provides a high-level abstraction of a metadata store. The class provides methods to create or get a ReplicaMetadata object that can be used to access the actual metadata for a replica. It also provides methods for starting and stopping transactions on the metadata store.

Notes to Inheritors

When you inherit from MetadataStore, you must override all of its members.

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