Udostępnij za pośrednictwem


SqlMetadataStore.RemoveReplicaMetadata Method

Removes all metadata associated with the specified replica.

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

Syntax

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

instance.RemoveReplicaMetadata(idFormats, replicaId)
public override void RemoveReplicaMetadata (
    SyncIdFormatGroup idFormats,
    SyncId replicaId
)
public:
virtual void RemoveReplicaMetadata (
    SyncIdFormatGroup^ idFormats, 
    SyncId^ replicaId
) override
public void RemoveReplicaMetadata (
    SyncIdFormatGroup idFormats, 
    SyncId replicaId
)
public override 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.

See Also

Reference

SqlMetadataStore Class
SqlMetadataStore Members
Microsoft.Synchronization.MetadataStorage Namespace