ManagedInstance.ID Property

Definition

Gets ID value that uniquely identifies the managed instance of SQL Server.

public:
 property int ID { int get(); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Data)]
public int ID { get; }
[<Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Data)>]
member this.ID : int
Public ReadOnly Property ID As Integer

Property Value

A Int32 value that specifies the ID value that uniquely identifies the managed instance.

Attributes

Examples

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   

Applies to