ServerConnection.ProcessID Property
Gets the ID value that uniquely identifies the process associated with the referenced connection to the server.
Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)
Syntax
'Bildirim
Public ReadOnly Property ProcessID As Integer
Get
'Kullanım
Dim instance As ServerConnection
Dim value As Integer
value = instance.ProcessID
public int ProcessID { get; }
public:
property int ProcessID {
int get ();
}
member ProcessID : int
function get ProcessID () : int
Property Value
Type: System.Int32
An Int32 value that specifies the ID value that uniquely identifies the process associated with the referenced connection to the server.
Examples
C#
ServerConnection conn = new ServerConnection();
Console.WriteLine(conn.ProcessID);
PowerShell
$conn = new-object Microsoft.SqlServer.Management.Common.ServerConnection
Write-Host $conn.ProcessID
See Also
Reference
Microsoft.SqlServer.Management.Common Namespace