WebManagementEvent.ProcessInformation Property

 

Gets information about the ASP.NET application-hosting process.

Namespace:   System.Web.Management
Assembly:  System.Web (in System.Web.dll)

public WebProcessInformation ProcessInformation { get; }

Property Value

Type: System.Web.Management.WebProcessInformation

A WebProcessInformation object that contains information about the process.

The following code example shows how to obtain the ProcessInformation value.

// 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();
}

.NET Framework
Available since 2.0
Return to top
Show: