Computer コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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)
パラメーター
例
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")
注釈
親であるユーティリティ オブジェクトの名前とコンピューターの名前を指定します。