Share via


Volume.Name Property

Gets the String value that specifies the name of the volume.

Namespace:  Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
<SfcKeyAttribute()> _
Public ReadOnly Property Name As String
    Get
'Usage
Dim instance As Volume
Dim value As String

value = instance.Name
[SfcPropertyAttribute(SfcPropertyFlags.Data)]
[SfcKeyAttribute()]
public string Name { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Data)]
[SfcKeyAttribute()]
public:
property String^ Name {
    String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Data)>]
[<SfcKeyAttribute()>]
member Name : string
function get Name () : String

Property Value

Type: System.String
A String value that specifies the name of the volume.

Examples

VC#

System.Console.WriteLine(volume.Name);

VB

System.Console.WriteLine(volume.Name)

PowerShell

Write-Host $volume.Name