共用方式為


Volume.Name 屬性

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

命名空間:  Microsoft.SqlServer.Management.Utility
組件:  Microsoft.SqlServer.Management.Utility (在 Microsoft.SqlServer.Management.Utility.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
<SfcKeyAttribute()> _
Public ReadOnly Property Name As String 
    Get
'用途
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

屬性值

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

範例

VC#

System.Console.WriteLine(volume.Name);

VB

System.Console.WriteLine(volume.Name)

PowerShell

Write-Host $volume.Name 

請參閱

參考

Volume 類別

Microsoft.SqlServer.Management.Utility 命名空間