ManagedComputer 构造函数 (String, String, String, ProviderArchitecture)
使用指定的计算机名称、指定的登录名、密码和指定的 ProviderArchitecture 初始化 ManagedComputer 类的新实例。
命名空间: Microsoft.SqlServer.Management.Smo.Wmi
程序集: Microsoft.SqlServer.SqlWmiManagement(在 Microsoft.SqlServer.SqlWmiManagement.dll 中)
语法
声明
Public Sub New ( _
machineName As String, _
userName As String, _
password As String, _
providerArchitecture As ProviderArchitecture _
)
用法
Dim machineName As String
Dim userName As String
Dim password As String
Dim providerArchitecture As ProviderArchitecture
Dim instance As New ManagedComputer(machineName, _
userName, password, providerArchitecture)
public ManagedComputer(
string machineName,
string userName,
string password,
ProviderArchitecture providerArchitecture
)
public:
ManagedComputer(
String^ machineName,
String^ userName,
String^ password,
ProviderArchitecture providerArchitecture
)
new :
machineName:string *
userName:string *
password:string *
providerArchitecture:ProviderArchitecture -> ManagedComputer
public function ManagedComputer(
machineName : String,
userName : String,
password : String,
providerArchitecture : ProviderArchitecture
)
参数
- machineName
类型:System. . :: . .String
一个指定计算机名称的 String 值。
- userName
类型:System. . :: . .String
一个指定用户名称的 String 值。
- password
类型:System. . :: . .String
一个指定密码的 String 值。
- providerArchitecture
类型:Microsoft.SqlServer.Management.Smo.Wmi. . :: . .ProviderArchitecture
指定提供程序体系结构类型的 ProviderArchitecture 值。