共用方式為


ServerGroupBase.ServerGroups 屬性

Represents a collection of ServerGroup objects. Each ServerGroup object represents a server group that is included in the parent server group.

命名空間:  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
A ServerGroupCollection object that represents all the server groups that are included in the parent server group.

備註

A server group can exist within a server group, thus creating a hierarchy of server groups.

請參閱

參考

ServerGroupBase 類別

Microsoft.SqlServer.Management.Smo.RegisteredServers 命名空間

其他資源

管理已註冊的伺服器