Costruttore ServerAlias (ManagedComputer, String)

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

Spazio dei nomi  Microsoft.SqlServer.Management.Smo.Wmi
Assembly:  Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)

Sintassi

'Dichiarazione
Public Sub New ( _
    managedComputer As ManagedComputer, _
    name As String _
)
'Utilizzo
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
)

Parametri

  • name
    Tipo: System.String
    A String value that specifies the name of the server connection alias.

Esempi

Gestione di servizi e di impostazioni di rete tramite il provider WMI

Vedere anche

Riferimento

ServerAlias Classe

Overload ServerAlias

Spazio dei nomi Microsoft.SqlServer.Management.Smo.Wmi

Altre risorse

WMI and SQL Server

Connessione al Motore di database di SQL Server