Volume Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the Microsoft.SqlServer.Management.Fabric.Volume class.
Overloads
Volume() |
Initializes a new instance of the Volume class. |
Volume(Computer, String) |
Initializes a new instance of the Volume class with the specified connection. |
Volume()
Initializes a new instance of the Volume class.
public:
Volume();
public Volume ();
Public Sub New ()
Examples
VC#
Volume volume;
volume = new Volume();
VB
Dim volume As Volume
volume = New Volume()
PowerShell
$volume = New-Object Microsoft.SqlServer.Management.Fabric.Volume()
Remarks
The default constructor initializes any fields to their default values.
Applies to
Volume(Computer, String)
Initializes a new instance of the Volume class with the specified connection.
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)
Parameters
Examples
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")
Remarks
Provide the name of the volume and the computer that the volume is on.