共用方式為


ManagedComputer 建構函式 (String, String, String)

初始化具有指定的電腦名稱以及指定的登入和密碼之 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 _
)
'用途
Dim machineName As String
Dim userName As String
Dim password As String

Dim instance As New ManagedComputer(machineName, _
    userName, password)
public ManagedComputer(
    string machineName,
    string userName,
    string password
)
public:
ManagedComputer(
    String^ machineName, 
    String^ userName, 
    String^ password
)
new : 
        machineName:string * 
        userName:string * 
        password:string -> ManagedComputer
public function ManagedComputer(
    machineName : String, 
    userName : String, 
    password : String
)

參數