Compartilhar via


AvailabilityGroup.DatabaseReplicaStates Property

Definition

A collection of objects represeting the states of physical database replicas participating in the availability groups. On an Availability Replica in a primary role, the collection returns information on all Database Replicas on all Availability Replicas. On an Availability Replica in a secondary role, the collection returns information on just the local Database Replicas.

The collection is keyed on the "AvailabilityReplicaServerName" and "AvailabilityDatabaseName" properties of the DatabaseReplciaState object.

[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcObject(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcContainerRelationship.ObjectContainer, Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcContainerCardinality.ZeroToAny, typeof(Microsoft.SqlServer.Management.Smo.DatabaseReplicaState))]
public Microsoft.SqlServer.Management.Smo.DatabaseReplicaStateCollection DatabaseReplicaStates { get; }
[<Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcObject(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcContainerRelationship.ObjectContainer, Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcContainerCardinality.ZeroToAny, typeof(Microsoft.SqlServer.Management.Smo.DatabaseReplicaState))>]
member this.DatabaseReplicaStates : Microsoft.SqlServer.Management.Smo.DatabaseReplicaStateCollection
Public ReadOnly Property DatabaseReplicaStates As DatabaseReplicaStateCollection

Property Value

Attributes

Applies to