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
- registeredServer
Type: Microsoft.SqlServer.Management.Smo.RegisteredServers.ServerGroup
A ServerGroup object that is to be added to the ServerGroupCollection object.
Examples
See Also
Reference
Microsoft.SqlServer.Management.Smo.RegisteredServers Namespace