共用方式為


IdentityKey 屬性

Gets the Key value that uniquely identifies the volume.

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

語法

'宣告
<SfcIgnoreAttribute> _
Public ReadOnly Property IdentityKey As Volume..::..Key
    Get
'用途
Dim instance As Volume
Dim value As Volume..::..Key

value = instance.IdentityKey
[SfcIgnoreAttribute]
public Volume..::..Key IdentityKey { get; }
[SfcIgnoreAttribute]
public:
property Volume..::..Key^ IdentityKey {
    Volume..::..Key^ get ();
}
[<SfcIgnoreAttribute>]
member IdentityKey : Volume..::..Key
function get IdentityKey () : Volume..::..Key

屬性值

型別:Microsoft.SqlServer.Management.Utility. . :: . .Volume. . :: . .Key
A Key system value that is the ID value that uniquely identifies the volume.

範例

VC#

System.Console.WriteLine(volume.IdentityKey);

VB

System.Console.WriteLine(volume.IdentityKey)

PowerShell

Write-Host $volume.IdentityKey