Partager via


Propriété Name

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

Espace de noms :  Microsoft.SqlServer.Management.Utility
Assembly :  Microsoft.SqlServer.Management.Utility (en Microsoft.SqlServer.Management.Utility.dll)

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
<SfcKeyAttribute()> _
Public ReadOnly Property Name As String
    Get
'Utilisation
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

Valeur de propriété

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

Exemples

VC#

System.Console.WriteLine(volume.Name);

VB

System.Console.WriteLine(volume.Name)

PowerShell

Write-Host $volume.Name