Share via


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)

Syntax

'Declaration
Public Overrides Function GetSingleReplicaMetadata As ReplicaMetadata
'Usage
Dim instance As SqlMetadataStore
Dim returnValue As ReplicaMetadata

returnValue = instance.GetSingleReplicaMetadata
public override ReplicaMetadata GetSingleReplicaMetadata ()
public:
virtual ReplicaMetadata^ GetSingleReplicaMetadata () override
public ReplicaMetadata GetSingleReplicaMetadata ()
public override function GetSingleReplicaMetadata () : ReplicaMetadata

Return Value

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

Exceptions

Exception type Condition

MultipleReplicasInStoreException

The metadata store contains metadata for more than one replica.

Remarks

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.

See Also

Reference

SqlMetadataStore Class
SqlMetadataStore Members
Microsoft.Synchronization.MetadataStorage Namespace