Share via


Volume.ID Property

Gets the ID value that uniquely identifies the volume.

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

Syntax

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

value = instance.ID
[SfcPropertyAttribute(SfcPropertyFlags.Data)]
public int ID { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Data)]
public:
property int ID {
    int get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Data)>]
member ID : int
function get ID () : int

Property Value

Type: System.Int32
A Int32 system value that is the ID value that uniquely identifies the volume.

Examples

VC#

System.Console.WriteLine(volume.ID);

VB

System.Console.WriteLine(volume.ID)

PowerShell

Write-Host $volume.ID 

See Also

Reference

Volume Class

Microsoft.SqlServer.Management.Utility Namespace