次の方法で共有


WebManagementEvent.ProcessInformation プロパティ

定義

ASP.NET アプリケーション ホスト プロセスに関する情報を取得します。

public:
 property System::Web::Management::WebProcessInformation ^ ProcessInformation { System::Web::Management::WebProcessInformation ^ get(); };
public System.Web.Management.WebProcessInformation ProcessInformation { get; }
member this.ProcessInformation : System.Web.Management.WebProcessInformation
Public ReadOnly Property ProcessInformation As WebProcessInformation

プロパティ値

プロセスに関する情報を格納する WebProcessInformation オブジェクト。

次のコード例は、値を取得する方法を ProcessInformation 示しています。

// Obtains the current process information.
public string GetProcessInfo()
{
    StringBuilder tempPi = new StringBuilder();
    WebProcessInformation pi = ProcessInformation;
    tempPi.Append(
        pi.ProcessName + Environment.NewLine);
    tempPi.Append(
        pi.ProcessID.ToString() + Environment.NewLine);
    tempPi.Append(
        pi.AccountName + Environment.NewLine);
    return tempPi.ToString();
}
' Obtains the current process information.
Public Function GetProcessInfo() As String
   Dim tempPi As New StringBuilder()
   Dim pi As WebProcessInformation = ProcessInformation
     tempPi.Append( _
     (pi.ProcessName + Environment.NewLine))
     tempPi.Append( _
     (pi.ProcessID.ToString() + Environment.NewLine))
     tempPi.Append( _
     (pi.AccountName + Environment.NewLine))
   Return tempPi.ToString()
End Function 'GetProcessInfo

適用対象

こちらもご覧ください