ManagedComputer 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 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
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
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
- providerArchitecture
- ProviderArchitecture
The ProviderArchitecture value that specifies the provider architecture type.