Share via


ManagedComputer Constructors

Definition

Initializes a new instance of the ManagedComputer class.

Overloads

ManagedComputer()

Initializes a new instance of the ManagedComputer class.

ManagedComputer(String)

Initializes a new instance of the ManagedComputer class with the specified computer name.

ManagedComputer(String, String, String)

Initializes a new instance of the ManagedComputer class with the specified computer name and the specified login and password.

ManagedComputer(String, String, String, ProviderArchitecture)

Initializes a new instance of the ManagedComputer class with the specified computer name the specified login, password and the specified ProviderArchitecture.

ManagedComputer()

Initializes a new instance of the ManagedComputer class.

public:
 ManagedComputer();
public ManagedComputer ();
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

ManagedComputer(String)

Initializes a new instance of the ManagedComputer class with the specified computer name.

public:
 ManagedComputer(System::String ^ machineName);
public ManagedComputer (string machineName);
new Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer : string -> Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer
Public Sub New (machineName As String)

Parameters

machineName
String

A String value that specifies the name of the computer.

Examples

Managing Services and Network Settings by Using WMI Provider

Applies to

ManagedComputer(String, String, String)

Initializes a new instance of the ManagedComputer class with the specified computer name and the specified login and password.

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

Parameters

machineName
String

A String value that specifies the name of the computer.

userName
String

A String value that specifies the user name.

password
String

A String value that specifies the password.

Examples

Managing Services and Network Settings by Using WMI Provider

Applies to

ManagedComputer(String, String, String, ProviderArchitecture)

Initializes a new instance of the ManagedComputer class with the specified computer name the specified login, password and the specified ProviderArchitecture.

public:
 ManagedComputer(System::String ^ machineName, System::String ^ userName, System::String ^ password, Microsoft::SqlServer::Management::Smo::Wmi::ProviderArchitecture providerArchitecture);
public ManagedComputer (string machineName, string userName, string password, Microsoft.SqlServer.Management.Smo.Wmi.ProviderArchitecture providerArchitecture);
new Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer : string * string * string * Microsoft.SqlServer.Management.Smo.Wmi.ProviderArchitecture -> Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer
Public Sub New (machineName As String, userName As String, password As String, providerArchitecture As ProviderArchitecture)

Parameters

machineName
String

A String value that specifies the name of the computer.

userName
String

A String value that specifies the user name.

password
String

A String value that specifies the password.

providerArchitecture
ProviderArchitecture

The ProviderArchitecture value that specifies the provider architecture type.

Applies to