Udostępnij przez


Właściwość ID

Pobiera wartość Identyfikatora, który unikatowo identyfikuje wolumin.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Utility
Zestaw:  Microsoft.SqlServer.Management.Utility (w Microsoft.SqlServer.Management.Utility.dll)

Syntax

'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public ReadOnly Property ID As Integer
    Get
'Użycie
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

Wartość właściwości

Typ: System. . :: . .Int32
A Int32 wartość systemu jest to wartość Identyfikatora, który unikatowo identyfikuje wolumin.

Przykłady

VC #

System.Console.WriteLine(volume.ID);

VB

System.Console.WriteLine(volume.ID)

PowerShell

Write-Host $volume.ID