Volume 构造函数

定义

初始化 Microsoft.SqlServer.Management.Fabric.Volume 类的新实例。

重载

名称 说明
Volume()

初始化 Volume 类的新实例。

Volume(Computer, String)

使用指定的连接初始化类的新实例 Volume

Volume()

初始化 Volume 类的新实例。

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

示例

维多利亚勋章#

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 指定卷名的值。

示例

维多利亚勋章#

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

注解

提供该卷的名称和该卷所在的计算机。

适用于