Freigeben über


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.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
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
)

Parameter

  • 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.

Hinweise

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Beispiel

How to: Stop and Restart the Microsoft SQL Server Service to the Instance of SQL Server in Visual Basic .NET

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

ServerAlias Class
ServerAlias Members
Microsoft.SqlServer.Management.Smo.Wmi Namespace

Andere Ressourcen

Managing Services and Network Settings by Using WMI Provider
WMI and SQL Server
Herstellen einer Verbindung zum SQL Server-Datenbankmodul