次の方法で共有


ServerGroups プロパティ

ServerGroup オブジェクトのコレクションを表します。各 ServerGroup オブジェクトは、親サーバー グループに含まれる 1 つのサーバー グループを表します。

名前空間:  Microsoft.SqlServer.Management.Smo.RegisteredServers
アセンブリ:  Microsoft.SqlServer.SmoExtended (Microsoft.SqlServer.SmoExtended.dll)

構文

'宣言
Public ReadOnly Property ServerGroups As ServerGroupCollection
    Get
'使用
Dim instance As ServerGroupBase
Dim value As ServerGroupCollection

value = instance.ServerGroups
public ServerGroupCollection ServerGroups { get; }
public:
property ServerGroupCollection^ ServerGroups {
    ServerGroupCollection^ get ();
}
member ServerGroups : ServerGroupCollection
function get ServerGroups () : ServerGroupCollection

プロパティ値

型: Microsoft.SqlServer.Management.Smo.RegisteredServers. . :: . .ServerGroupCollection
親サーバー グループに含まれるすべてのサーバー グループを表す ServerGroupCollection オブジェクトです。

説明

サーバー グループは別のサーバー グループ内に含めることができます。これにより、サーバー グループの階層が作成されます。