共用方式為


ManagedComputer 建構函式 (String)

Initializes a new instance of the ManagedComputer class with the specified computer name.

命名空間:  Microsoft.SqlServer.Management.Smo.Wmi
組件:  Microsoft.SqlServer.SqlWmiManagement (在 Microsoft.SqlServer.SqlWmiManagement.dll 中)

語法

'宣告
Public Sub New ( _
    machineName As String _
)
'用途
Dim machineName As String 

Dim instance As New ManagedComputer(machineName)
public ManagedComputer(
    string machineName
)
public:
ManagedComputer(
    String^ machineName
)
new : 
        machineName:string -> ManagedComputer
public function ManagedComputer(
    machineName : String
)

參數

範例

使用 WMI 提供者管理服務和網路設定

請參閱

參考

ManagedComputer 類別

ManagedComputer 多載

Microsoft.SqlServer.Management.Smo.Wmi 命名空間

其他資源

連接到 SQL Server Database Engine