AvailabilityGroup.DatabaseReplicaStates 屬性
Gets the collection of DatabaseReplicaState objects representing the states of physical database replicas participating in the availability groups.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, _
GetType(DatabaseReplicaState))> _
Public ReadOnly Property DatabaseReplicaStates As DatabaseReplicaStateCollection
Get
'用途
Dim instance As AvailabilityGroup
Dim value As DatabaseReplicaStateCollection
value = instance.DatabaseReplicaStates
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,
typeof(DatabaseReplicaState))]
public DatabaseReplicaStateCollection DatabaseReplicaStates { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::ZeroToAny,
typeof(DatabaseReplicaState))]
public:
property DatabaseReplicaStateCollection^ DatabaseReplicaStates {
DatabaseReplicaStateCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,
typeof(DatabaseReplicaState))>]
member DatabaseReplicaStates : DatabaseReplicaStateCollection
function get DatabaseReplicaStates () : DatabaseReplicaStateCollection
屬性值
型別:Microsoft.SqlServer.Management.Smo.DatabaseReplicaStateCollection
The collection of DatabaseReplicaState objects representing the states of physical database replicas participating in the availability groups.