Share via


MetadataStore.RemoveReplicaMetadata Method

When overridden in a derived class, removes all metadata associated with the specified replica.

Namespace: Microsoft.Synchronization.MetadataStorage
Assembly: Microsoft.Synchronization.MetadataStorage (in microsoft.synchronization.metadatastorage.dll)

Syntax

'Declaration
Public MustOverride Sub RemoveReplicaMetadata ( _
    idFormats As SyncIdFormatGroup, _
    replicaId As SyncId _
)
'Usage
Dim instance As MetadataStore
Dim idFormats As SyncIdFormatGroup
Dim replicaId As SyncId

instance.RemoveReplicaMetadata(idFormats, replicaId)
public abstract void RemoveReplicaMetadata (
    SyncIdFormatGroup idFormats,
    SyncId replicaId
)
public:
virtual void RemoveReplicaMetadata (
    SyncIdFormatGroup^ idFormats, 
    SyncId^ replicaId
) abstract
public abstract void RemoveReplicaMetadata (
    SyncIdFormatGroup idFormats, 
    SyncId replicaId
)
public abstract function RemoveReplicaMetadata (
    idFormats : SyncIdFormatGroup, 
    replicaId : SyncId
)

Parameters

  • idFormats
    The ID format schema of the provider.
  • replicaId
    All metadata associated with this replica ID is removed from the metadata store.

Exceptions

Exception type Condition

ReplicaMetadataInUseException

An instance of ReplicaMetadata for replicaId is currently active.

ReplicaMetadataNotFoundException

Metadata for replicaId does not exist in the metadata store.

MetadataStoreInvalidOperationException

The metadata store has not been opened. For example, OpenStore must be called to open the metadata store before this method can be called on a SqlMetadataStore object.

See Also

Reference

MetadataStore Class
MetadataStore Members
Microsoft.Synchronization.MetadataStorage Namespace