Computer コンストラクター (Utility, String)
指定された親ユーティリティ オブジェクトと指定された名前を使用して、Computer クラスの新しいインスタンスを初期化します。
名前空間: Microsoft.SqlServer.Management.Utility
アセンブリ: Microsoft.SqlServer.Management.Utility (Microsoft.SqlServer.Management.Utility.dll)
構文
'宣言
Public Sub New ( _
parent As Utility, _
name As String _
)
'使用
Dim parent As Utility
Dim name As String
Dim instance As New Computer(parent, _
name)
public Computer(
Utility parent,
string name
)
public:
Computer(
Utility^ parent,
String^ name
)
new :
parent:Utility *
name:string -> Computer
public function Computer(
parent : Utility,
name : String
)
パラメーター
- parent
型: Microsoft.SqlServer.Management.Utility.Utility
Computer オブジェクトの親である Utility オブジェクト値です。
- name
型: System.String
コンピューターの名前を示す String 値です。
説明
親であるユーティリティ オブジェクトの名前とコンピューターの名前を指定します。
使用例
VC#
Computer computer;
computer = new Computer(Utility,"HR_Com45");
VB
Dim computer As Computer
computer = New Computer(Utility,"HR_Com45")
PowerShell
$computer = New-Object Microsoft.SqlServer.Management.Utility.Computer(Utility,"HR_Com45")