Volume コンストラクター (Computer, String)

指定した接続を使用して、Volume クラスの新しいインスタンスを初期化します。

名前空間:  Microsoft.SqlServer.Management.Utility
アセンブリ:  Microsoft.SqlServer.Management.Utility (Microsoft.SqlServer.Management.Utility.dll)

構文

'宣言
Public Sub New ( _
    parent As Computer, _
    name As String _
)
'使用
Dim parent As Computer 
Dim name As String 

Dim instance As New Volume(parent, _
    name)
public Volume(
    Computer parent,
    string name
)
public:
Volume(
    Computer^ parent, 
    String^ name
)
new : 
        parent:Computer * 
        name:string -> Volume
public function Volume(
    parent : Computer, 
    name : String
)

パラメーター

説明

ボリュームの名前とボリュームが含まれているコンピューターを指定します。

使用例

VC#

Volume volume;
volume = new Volume(computer, "Volume_1");

VB

Dim volume As Volume 
volume = New Volume(computer, "Volume_1") 

PowerShell

$volume = New-Object Microsoft.SqlServer.Management.Common.Volume(computer, "Volume_1")

関連項目

参照

Volume クラス

Volume オーバーロード

Microsoft.SqlServer.Management.Utility 名前空間