Gets a DatabaseReplicaState object in the collection by name.
네임스페이스: Microsoft.SqlServer.Management.Smo
어셈블리: Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)
구문
‘선언
Public ReadOnly Default Property Item ( _
replicaName As String, _
name As String _
) As DatabaseReplicaState
Get
‘사용 방법
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는 인덱싱된 속성의 사용을 지원하지만 새로운 인덱싱된 속성 선언은 지원하지 않습니다.
매개 변수
- replicaName
유형: System.String
The name of the replica.
- name
유형: System.String
A value that specifies the name of the DatabaseReplicaState object in the DatabaseReplicaStateCollection collection.
속성 값
유형: Microsoft.SqlServer.Management.Smo.DatabaseReplicaState
A DatabaseReplicaState object value that represents the database role.