SqlMetadataStore::GetSingleReplicaMetadata Method

Gets the metadata for the single replica contained in the metadata store.

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

public:
virtual ReplicaMetadata^ GetSingleReplicaMetadata() override

Return Value

Type: Microsoft.Synchronization.MetadataStorage::ReplicaMetadata
The metadata for the single replica contained in the metadata store.

ExceptionCondition
MultipleReplicasInStoreException

The metadata store contains metadata for more than one replica.

A provider that represents a single replica can use this method to retrieve the metadata for the replica it represents. By using this method, the provider does not have to independently store the replica ID in order to retrieve the replica metadata.

Show: