다음을 통해 공유


ProcessID 속성

Gets the ID value that uniquely identifies the process associated with the referenced connection to the server.

네임스페이스:  Microsoft.SqlServer.Management.Common
어셈블리:  Microsoft.SqlServer.ConnectionInfo(Microsoft.SqlServer.ConnectionInfo.dll)

구문

‘선언
Public ReadOnly Property ProcessID As Integer
    Get
‘사용 방법
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

속성 값

유형: System. . :: . .Int32
An Int32 value that specifies the ID value that uniquely identifies the process associated with the referenced connection to the server.

C#

ServerConnection conn = new ServerConnection();
Console.WriteLine(conn.ProcessID);

PowerShell

$conn = new-object Microsoft.SqlServer.Management.Common.ServerConnection
Write-Host $conn.ProcessID