ServerAlias Constructor (ManagedComputer, String)
Initializes a new instance of the ServerAlias class on the specified WMI installation and with the specified name.
Espacio de nombres: Microsoft.SqlServer.Management.Smo.Wmi
Ensamblado: Microsoft.SqlServer.SqlWmiManagement (en Microsoft.SqlServer.SqlWmiManagement.dll)
Sintaxis
'Declaración
Public Sub New ( _
managedComputer As ManagedComputer, _
name As String _
)
'Uso
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
)
Parámetros
- managedComputer
Tipo: Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer
A ManagedComputer object value that specifies the WMI installation for which the server connection alias is used.
- name
Tipo: System.String
A String value that specifies the name of the server connection alias.
Ejemplos
Administrar servicios y configuración de red utilizando el proveedor WMI
Vea también
Referencia
Espacio de nombres Microsoft.SqlServer.Management.Smo.Wmi