Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Gets ID value that uniquely identifies the managed instance of SQL Server.
Namespace: Microsoft.SqlServer.Management.Utility
Assembly: Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)
Syntax
'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public ReadOnly Property ID As Integer
Get
'Usage
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
Eigenschaftswert
Typ: System.Int32
A Int32 value that specifies the ID value that uniquely identifies the managed instance.
Beispiele
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