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 值。