Volume Constructors

Definition

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

parent
Computer

A Volume value that specifies the computer that is the parent of the Volume object.

name
String

A String value that specifies the name of the volume.

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.

Applies to