Server.AvailabilityGroups Property
Gets the available groups in the server.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, _
GetType(AvailabilityGroup))> _
Public ReadOnly Property AvailabilityGroups As AvailabilityGroupCollection
Get
'Usage
Dim instance As Server
Dim value As AvailabilityGroupCollection
value = instance.AvailabilityGroups
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,
typeof(AvailabilityGroup))]
public AvailabilityGroupCollection AvailabilityGroups { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::ZeroToAny,
typeof(AvailabilityGroup))]
public:
property AvailabilityGroupCollection^ AvailabilityGroups {
AvailabilityGroupCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,
typeof(AvailabilityGroup))>]
member AvailabilityGroups : AvailabilityGroupCollection
function get AvailabilityGroups () : AvailabilityGroupCollection
Property Value
Type: Microsoft.SqlServer.Management.Smo.AvailabilityGroupCollection
The available groups in the server.