Volume 建構函式

定義

初始化 Microsoft.SqlServer.Management.Fabric.Volume 類別的新執行個體。

多載

Volume()

初始化 Volume 類別的新執行個體。

Volume(Computer, String)

使用指定的連接,初始化 Volume 類別的新執行個體。

Volume()

初始化 Volume 類別的新執行個體。

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

範例

Vc#

Volume volume;  
volume = new Volume();  

VB

Dim volume As Volume  
volume = New Volume()  

PowerShell

$volume = New-Object Microsoft.SqlServer.Management.Fabric.Volume()  

備註

預設建構函式會初始化任何欄位至其預設值。

適用於

Volume(Computer, String)

使用指定的連接,初始化 Volume 類別的新執行個體。

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

參數

parent
Computer

指定電腦的 Volume 值,該電腦為 Volume 物件的父系。

name
String

指定磁碟區名稱的 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")  

備註

提供磁片區的名稱和磁片區所在的電腦。

適用於