AvailabilityGroup.AvailabilityReplicas Property
Gets the collection of availability replicas participating in the availability group.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.OneToAny, _
GetType(AvailabilityReplica))> _
Public ReadOnly Property AvailabilityReplicas As AvailabilityReplicaCollection
Get
'Usage
Dim instance As AvailabilityGroup
Dim value As AvailabilityReplicaCollection
value = instance.AvailabilityReplicas
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.OneToAny,
typeof(AvailabilityReplica))]
public AvailabilityReplicaCollection AvailabilityReplicas { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::OneToAny,
typeof(AvailabilityReplica))]
public:
property AvailabilityReplicaCollection^ AvailabilityReplicas {
AvailabilityReplicaCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.OneToAny,
typeof(AvailabilityReplica))>]
member AvailabilityReplicas : AvailabilityReplicaCollection
function get AvailabilityReplicas () : AvailabilityReplicaCollection
Property Value
Type: Microsoft.SqlServer.Management.Smo.AvailabilityReplicaCollection
The collection of availability replicas participating in the availability group.