DatabaseReplicaStateCollection.Remove DatabaseReplicaStateCollection.Remove DatabaseReplicaStateCollection.Remove Method

Definition

Removes a DatabaseReplicaState object in the collection by name or by index number.

Overloads

Remove(DatabaseReplicaState) Remove(DatabaseReplicaState)

Removes the specified database role to the collection.

Remove(String, String) Remove(String, String) Remove(String, String)

Removes a DatabaseReplicaState object in the collection by name.

Remove(DatabaseReplicaState) Remove(DatabaseReplicaState)

Removes the specified database role to the collection.

public:
 void Remove(Microsoft::SqlServer::Management::Smo::DatabaseReplicaState ^ DatabaseReplicaState);
public void Remove (Microsoft.SqlServer.Management.Smo.DatabaseReplicaState DatabaseReplicaState);
Parameters

Remove(String, String) Remove(String, String) Remove(String, String)

Removes a DatabaseReplicaState object in the collection by name.

public:
 void Remove(System::String ^ replicaName, System::String ^ name);
public void Remove (string replicaName, string name);
Public Sub Remove (replicaName As String, name As String)
Parameters
replicaName
String String String

The name of the replica.

name
String String String

A value that specifies the name of the DatabaseReplicaState object in the DatabaseReplicaStateCollection collection.

Applies to