Volume 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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)
參數
範例
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")
備註
提供磁片區的名稱和磁片區所在的電腦。