Freigeben über


DatabaseReplicaStateCollection.Item-Eigenschaft (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)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    replicaName As String, _
    name As String _
) As DatabaseReplicaState 
    Get
'Usage
Dim instance As DatabaseReplicaStateCollection 
Dim replicaName As String 
Dim name As String 
Dim value As DatabaseReplicaState 

value = instance(replicaName, name)
public DatabaseReplicaState this[
    string replicaName,
    string name
] { get; }
public:
property DatabaseReplicaState^ default[String^ replicaName, String^ name] {
    DatabaseReplicaState^ get (String^ replicaName, String^ name);
}
member Item : DatabaseReplicaState
JScript unterstützt die Verwendung indizierter Eigenschaften, aber nicht die Deklaration neuer Eigenschaften.

Parameter

Eigenschaftswert

Typ: Microsoft.SqlServer.Management.Smo.DatabaseReplicaState
A DatabaseReplicaState object value that represents the database role.

Siehe auch

Verweis

DatabaseReplicaStateCollection Klasse

Item-Überladung

Microsoft.SqlServer.Management.Smo-Namespace