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")
注解
提供卷的名称以及卷已打开的计算机。