ProcessID Propiedad
Gets the ID value that uniquely identifies the process associated with the referenced connection to the server.
Espacio de nombres: Microsoft.SqlServer.Management.Common
Ensamblado: Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)
Sintaxis
'Declaración
Public ReadOnly Property ProcessID As Integer
Get
'Uso
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
Valor de la propiedad
Tipo: System. . :: . .Int32
An Int32 value that specifies the ID value that uniquely identifies the process associated with the referenced connection to the server.
Ejemplos
C#
ServerConnection conn = new ServerConnection();
Console.WriteLine(conn.ProcessID);
PowerShell
$conn = new-object Microsoft.SqlServer.Management.Common.ServerConnection
Write-Host $conn.ProcessID
Vea también