DatabaseReplicaStateCollection.Item[String, String] DatabaseReplicaStateCollection.Item[String, String] DatabaseReplicaStateCollection.Item[String, String] Property

Definition

Overloads

Item[Int32] Item[Int32] Item[Int32]

Gets a DatabaseReplicaState object in the collection by index number.

Item[String, String] Item[String, String] Item[String, String]

Gets a DatabaseReplicaState object in the collection by name.

Item[Int32] Item[Int32] Item[Int32]

Gets a DatabaseReplicaState object in the collection by index number.

public:
 property Microsoft::SqlServer::Management::Smo::DatabaseReplicaState ^ default[int] { Microsoft::SqlServer::Management::Smo::DatabaseReplicaState ^ get(int index); };
public Microsoft.SqlServer.Management.Smo.DatabaseReplicaState this[int index] { get; }
Default Public ReadOnly Property Item(index As Integer) As DatabaseReplicaState
Parameters
index
Int32 Int32 Int32

The position of the object in the collection.

Property Value

A specified object in the collection.

Item[String, String] Item[String, String] Item[String, String]

Gets a DatabaseReplicaState object in the collection by name.

public:
 property Microsoft::SqlServer::Management::Smo::DatabaseReplicaState ^ default[System::String ^, System::String ^] { Microsoft::SqlServer::Management::Smo::DatabaseReplicaState ^ get(System::String ^ replicaName, System::String ^ name); };
public Microsoft.SqlServer.Management.Smo.DatabaseReplicaState this[string replicaName, string name] { get; }
Default Public ReadOnly Property Item(replicaName As String, name As String) As DatabaseReplicaState
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.

Property Value

A DatabaseReplicaState object value that represents the database role.

Applies to