Share via


ServerGroupCollection.Add Method

Adds a ServerGroup object to the ServerGroupCollection collection.

Namespace:  Microsoft.SqlServer.Management.Smo.RegisteredServers
Assembly:  Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)

Syntax

'Declaration
Public Sub Add ( _
    registeredServer As ServerGroup _
)
'Usage
Dim instance As ServerGroupCollection 
Dim registeredServer As ServerGroup

instance.Add(registeredServer)
public void Add(
    ServerGroup registeredServer
)
public:
void Add(
    ServerGroup^ registeredServer
)
member Add : 
        registeredServer:ServerGroup -> unit
public function Add(
    registeredServer : ServerGroup
)

Parameters

Examples

Using Collections

See Also

Reference

ServerGroupCollection Class

Microsoft.SqlServer.Management.Smo.RegisteredServers Namespace

Other Resources

Using Collections