Computer.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 

请参阅

参考

Computer 类

Microsoft.SqlServer.Management.Utility 命名空间