Поделиться через


Свойство ID

Gets the ID value that uniquely identifies the computer.

Пространство имен:  Microsoft.SqlServer.Management.Utility
Сборка:  Microsoft.SqlServer.Management.Utility (в Microsoft.SqlServer.Management.Utility.dll)

Синтаксис

'Декларация
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public Property ID As Integer
    Get
    Friend Set
'Применение
Dim instance As Computer
Dim value As Integer

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

Значение свойства

Тип: System. . :: . .Int32
A Int32 value that specifies the ID value that uniquely identifies the computer.

Примеры

VC#

System.Console.WriteLine(computer.ID);

VB

System.Console.WriteLine(computer.ID)

PowerShell

Write-Host $computer.ID