DatabaseReplicaStateCollection.Remove Method (String, String)
Removes a DatabaseReplicaState object in the collection by name.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Bildirim
Public Sub Remove ( _
replicaName As String, _
name As String _
)
'Kullanım
Dim instance As DatabaseReplicaStateCollection
Dim replicaName As String
Dim name As String
instance.Remove(replicaName, name)
public void Remove(
string replicaName,
string name
)
public:
void Remove(
String^ replicaName,
String^ name
)
member Remove :
replicaName:string *
name:string -> unit
public function Remove(
replicaName : String,
name : String
)
Parameters
- replicaName
Type: System.String
The name of the replica.
- name
Type: System.String
A value that specifies the name of the DatabaseReplicaState object in the DatabaseReplicaStateCollection collection.