ManagedComputer ManagedComputer ManagedComputer Constructors

Definition

Overloads

ManagedComputer() ManagedComputer() ManagedComputer()

Initializes a new instance of the ManagedComputer class.

ManagedComputer(String) ManagedComputer(String) ManagedComputer(String)

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

ManagedComputer(String, String, String) ManagedComputer(String, String, String) 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) 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() ManagedComputer() 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.

ManagedComputer(String) ManagedComputer(String) ManagedComputer(String)

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

public:
 ManagedComputer(System::String ^ machineName);
public ManagedComputer (string machineName);
Public Sub New (machineName As String)
Parameters
machineName
String String String

A String value that specifies the name of the computer.

Examples

Managing Services and Network Settings by Using WMI Provider

ManagedComputer(String, String, String) ManagedComputer(String, String, String) 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);
Public Sub New (machineName As String, userName As String, password As String)
Parameters
machineName
String String String

A String value that specifies the name of the computer.

userName
String String String

A String value that specifies the user name.

password
String String String

A String value that specifies the password.

Examples

Managing Services and Network Settings by Using WMI Provider

ManagedComputer(String, String, String, ProviderArchitecture) 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);
Parameters
machineName
String String String

A String value that specifies the name of the computer.

userName
String String String

A String value that specifies the user name.

password
String String String

A String value that specifies the password.

providerArchitecture
ProviderArchitecture ProviderArchitecture ProviderArchitecture

The ProviderArchitecture value that specifies the provider architecture type.

Applies to