Share via


ServerGroup Constructor (ServerGroup, String)

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

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

Syntax

'Declaration
Public Sub New ( _
    serverGroup As ServerGroup, _
    name As String _
)
'Usage
Dim serverGroup As ServerGroup 
Dim name As String 

Dim instance As New ServerGroup(serverGroup, _
    name)
public ServerGroup(
    ServerGroup serverGroup,
    string name
)
public:
ServerGroup(
    ServerGroup^ serverGroup, 
    String^ name
)
new : 
        serverGroup:ServerGroup * 
        name:string -> ServerGroup
public function ServerGroup(
    serverGroup : ServerGroup, 
    name : String
)

Parameters

See Also

Reference

ServerGroup Class

ServerGroup Overload

Microsoft.SqlServer.Management.Smo.RegisteredServers Namespace

Other Resources

NIB Manage Registered Servers

sp_ActiveDirectory_SCP (Transact-SQL)