共用方式為


Server.AvailabilityGroups 屬性

Gets the available groups in the server.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(AvailabilityGroup))> _
Public ReadOnly Property AvailabilityGroups As AvailabilityGroupCollection 
    Get
'用途
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

屬性值

型別:Microsoft.SqlServer.Management.Smo.AvailabilityGroupCollection
The available groups in the server.

請參閱

參考

Server 類別

Microsoft.SqlServer.Management.Smo 命名空間