Właściwość Volume.Name
Pobiera String wartość, która określa nazwę woluminu.
Przestrzeń nazw: Microsoft.SqlServer.Management.Utility
Zestaw: Microsoft.SqlServer.Management.Utility (w Microsoft.SqlServer.Management.Utility.dll)
Składnia
'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
<SfcKeyAttribute()> _
Public ReadOnly Property Name As String
Get
'Użycie
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
Wartość właściwości
Typ: System.String
A String wartość, która określa nazwę woluminu.
Przykłady
VC #
System.Console.WriteLine(volume.Name);
VB
System.Console.WriteLine(volume.Name)
PowerShell
Write-Host $volume.Name