Поделиться через


Конструктор ServerAlias (ManagedComputer, String)

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

Пространство имен:  Microsoft.SqlServer.Management.Smo.Wmi
Сборка:  Microsoft.SqlServer.SqlWmiManagement (в Microsoft.SqlServer.SqlWmiManagement.dll)

Синтаксис

'Декларация
Public Sub New ( _
    managedComputer As ManagedComputer, _
    name As String _
)
'Применение
Dim managedComputer As ManagedComputer
Dim name As String

Dim instance As New ServerAlias(managedComputer, _
    name)
public ServerAlias(
    ManagedComputer managedComputer,
    string name
)
public:
ServerAlias(
    ManagedComputer^ managedComputer, 
    String^ name
)
new : 
        managedComputer:ManagedComputer * 
        name:string -> ServerAlias
public function ServerAlias(
    managedComputer : ManagedComputer, 
    name : String
)

Параметры