DatabaseReplicaStateCollection.Item Property (String, String)

 

Gets a DatabaseReplicaState object in the collection by name.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public DatabaseReplicaState this[
	string replicaName,
	string name
] { get; }

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.

Property Value

Type: Microsoft.SqlServer.Management.Smo.DatabaseReplicaState

A DatabaseReplicaState object value that represents the database role.

Return to top
Show: