Share via


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.

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public MustInherit Class MetadataStore
'Usage
Dim instance As MetadataStore
public abstract class MetadataStore
public ref class MetadataStore abstract
[<AbstractClassAttribute>]
type MetadataStore =  class end
public abstract class MetadataStore

The MetadataStore type exposes the following members.

Constructors

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

Top

Methods

  Name Description
Public method BeginTransaction When overridden in a derived class, starts an explicit transaction on the metadata store that has the specified isolation level.
Public method CommitTransaction When overridden in a derived class, commits an explicit transaction that has already started on the metadata store.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetReplicaMetadata When overridden in a derived class, gets the ReplicaMetadata object that represents the metadata for a particular replica.
Public method GetSingleReplicaMetadata When overridden in a derived class, gets the metadata for the single replica contained in the metadata store.
Public method GetType (Inherited from Object.)
Public method InitializeReplicaMetadata When overridden in a derived class, creates, initializes, and saves new metadata for a replica.
Public method IsTransactionActive When overridden in a derived class, indicates whether an active transaction exists on the metadata store.
Protected method MemberwiseClone (Inherited from Object.)
Public method RemoveReplicaMetadata When overridden in a derived class, removes all metadata associated with the specified replica.
Public method RollbackTransaction Cancels the current explicit transaction and rolls the metadata store back to the state it was in before the transaction was started.
Public method ToString (Inherited from Object.)

Top

Remarks

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.

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.MetadataStorage Namespace

Other Resources

Getting Started Storing Metadata