Share via


ServerAlias Constructors

Definition

Initializes a new instance of the ServerAlias class.

Overloads

ServerAlias()

Initializes a new instance of the ServerAlias class.

ServerAlias(ManagedComputer, String)

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

ServerAlias()

Initializes a new instance of the ServerAlias class.

public:
 ServerAlias();
public ServerAlias ();
Public Sub New ()

Examples

Managing Services and Network Settings by Using WMI Provider

Remarks

The default constructor initializes any fields to their default values.

Applies to

ServerAlias(ManagedComputer, String)

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

public:
 ServerAlias(Microsoft::SqlServer::Management::Smo::Wmi::ManagedComputer ^ managedComputer, System::String ^ name);
public ServerAlias (Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer managedComputer, string name);
new Microsoft.SqlServer.Management.Smo.Wmi.ServerAlias : Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer * string -> Microsoft.SqlServer.Management.Smo.Wmi.ServerAlias
Public Sub New (managedComputer As ManagedComputer, name As String)

Parameters

managedComputer
ManagedComputer

A ManagedComputer object value that specifies the WMI installation for which the server connection alias is used.

name
String

A String value that specifies the name of the server connection alias.

Examples

Managing Services and Network Settings by Using WMI Provider

Applies to