ServerAlias Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
Examples
Managing Services and Network Settings by Using WMI Provider