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

注解

提供卷的名称以及卷已打开的计算机。

适用于