ManagedInstance.ID 属性
Gets ID value that uniquely identifies the managed instance of SQL Server.
命名空间: Microsoft.SqlServer.Management.Utility
程序集: Microsoft.SqlServer.Management.Utility(在 Microsoft.SqlServer.Management.Utility.dll 中)
语法
声明
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public ReadOnly Property ID As Integer
Get
用法
Dim instance As ManagedInstance
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
属性值
类型:System.Int32
A Int32 value that specifies the ID value that uniquely identifies the managed instance.
示例
VC#
ManagedInstance managedInstance;
managedInstance = new ManagedInstance ();
System.Console.WriteLine(managedInstance.ID);
VB
Dim managedInstance As ManagedInstance
managedInstance = New ManagedInstance()
System.Console.WriteLine(managedInstance.ID)
PowerShell
$managedInstance = New-Object Microsoft.SqlServer.Management.Utility.ManagedInstance
Write-Host $managedInstance.ID