Computer コンストラクター

定義

Computer クラスの新しいインスタンスを初期化します。

オーバーロード

Computer()

Computer クラスの新しいインスタンスを初期化します。

Computer(Utility, String)

指定された親ユーティリティ オブジェクトと指定された名前を使用して、Computer クラスの新しいインスタンスを初期化します。

Computer()

Computer クラスの新しいインスタンスを初期化します。

public:
 Computer();
public Computer ();
Public Sub New ()

Vc#

Computer computer;  
computer = new Computer();  

VB

Dim computer As Computer  
computer = New Computer()  

PowerShell

$computer = New-Object Microsoft.SqlServer.Management.Utility.Computer()  

注釈

既定のコンストラクターは、すべてのフィールドを既定値に初期化します。

適用対象

Computer(Utility, String)

指定された親ユーティリティ オブジェクトと指定された名前を使用して、Computer クラスの新しいインスタンスを初期化します。

public:
 Computer(Microsoft::SqlServer::Management::Utility::Utility ^ parent, System::String ^ name);
public Computer (Microsoft.SqlServer.Management.Utility.Utility parent, string name);
new Microsoft.SqlServer.Management.Utility.Computer : Microsoft.SqlServer.Management.Utility.Utility * string -> Microsoft.SqlServer.Management.Utility.Computer
Public Sub New (parent As Utility, name As String)

パラメーター

parent
Utility

Utility オブジェクトの親である Computer オブジェクト値です。

name
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")  

注釈

親であるユーティリティ オブジェクトの名前とコンピューターの名前を指定します。

適用対象