WebProcessInformation.ProcessID 屬性

定義

取得處理序識別項。

public:
 property int ProcessID { int get(); };
public int ProcessID { get; }
member this.ProcessID : int
Public ReadOnly Property ProcessID As Integer

屬性值

Int32

處理序識別項。

範例

下列範例示範如何取得進程識別碼。

public string GetProcessId()
{
    // Get the process identifier.
    return (string.Format(
        "Process Id: {0}", 
        ProcessInformation.ProcessID.ToString()));
}
Public Function GetProcessId() As String
   ' Get the process identifier.
     Return String.Format("Process Id: {0}", _
     processInformation.ProcessID.ToString())
End Function 'GetProcessId

備註

這是裝載 ASP.NET 的背景工作進程識別碼。

適用於