ServerGroup Constructors

Definition

Initializes a new instance of the ServerGroup object.

Overloads

ServerGroup()

Initializes a new instance of the ServerGroup object.

ServerGroup(String)

Initializes a new instance of the ServerGroup object that has the specified name.

ServerGroup(ServerGroup, String)

Initializes a new instance of the ServerGroup object based on the specified server group and with the specified name.

ServerGroup()

Initializes a new instance of the ServerGroup object.

public:
 ServerGroup();
public ServerGroup ();
Public Sub New ()

Remarks

The default constructor initializes any fields to their default values.

See also

Applies to

ServerGroup(String)

Initializes a new instance of the ServerGroup object that has the specified name.

public:
 ServerGroup(System::String ^ name);
public ServerGroup (string name);
new Microsoft.SqlServer.Management.Smo.RegisteredServers.ServerGroup : string -> Microsoft.SqlServer.Management.Smo.RegisteredServers.ServerGroup
Public Sub New (name As String)

Parameters

name
String

A String value that specifies the name of the server group.

See also

Applies to

ServerGroup(ServerGroup, String)

Initializes a new instance of the ServerGroup object based on the specified server group and with the specified name.

public:
 ServerGroup(Microsoft::SqlServer::Management::Smo::RegisteredServers::ServerGroup ^ serverGroup, System::String ^ name);
public ServerGroup (Microsoft.SqlServer.Management.Smo.RegisteredServers.ServerGroup serverGroup, string name);
new Microsoft.SqlServer.Management.Smo.RegisteredServers.ServerGroup : Microsoft.SqlServer.Management.Smo.RegisteredServers.ServerGroup * string -> Microsoft.SqlServer.Management.Smo.RegisteredServers.ServerGroup
Public Sub New (serverGroup As ServerGroup, name As String)

Parameters

serverGroup
ServerGroup

A ServerGroup object value that specifies the server group on which to base the new server group.

name
String

A String value that specifies the name of the server group.

Applies to