Udostępnij przez


ServerAlias Constructor (ManagedComputer, String)

Initializes a new instance of the ServerAlias class on the specified WMI installation and with the specified name.

Namespace: Microsoft.SqlServer.Management.Smo.Wmi
Assembly: Microsoft.SqlServer.SqlWmiManagement (in microsoft.sqlserver.sqlwmimanagement.dll)

Syntax

'Deklaracja
Public Sub New ( _
    managedComputer As ManagedComputer, _
    name As String _
)
public ServerAlias (
    ManagedComputer managedComputer,
    string name
)
public:
ServerAlias (
    ManagedComputer^ managedComputer, 
    String^ name
)
public ServerAlias (
    ManagedComputer managedComputer, 
    String name
)
public function ServerAlias (
    managedComputer : ManagedComputer, 
    name : String
)

Parameters

  • managedComputer
    A ManagedComputer object value that specifies the WMI installation for which the server connection alias is used.
  • name
    A String value that specifies the name of the server connection alias.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.