ManagedComputer Constructor (String, String, String)
Initializes a new instance of the ManagedComputer class with the specified computer name and the specified login and password.
Namespace: Microsoft.SqlServer.Management.Smo.Wmi
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntax
'Declaration
Public Sub New ( _
machineName As String, _
userName As String, _
password As String _
)
public ManagedComputer (
string machineName,
string userName,
string password
)
public:
ManagedComputer (
String^ machineName,
String^ userName,
String^ password
)
public ManagedComputer (
String machineName,
String userName,
String password
)
public function ManagedComputer (
machineName : String,
userName : String,
password : String
)
Parameters
- machineName
A String value that specifies the name of the computer.
- userName
A String value that specifies the user name.
- password
A String value that specifies the password.
Remarks
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
Example
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
See Also
Reference
ManagedComputer Class
ManagedComputer Members
Microsoft.SqlServer.Management.Smo.Wmi Namespace
Other Resources
Managing Services and Network Settings by Using WMI Provider
WMI and SQL Server
Connecting to the SQL Server Database Engine