ProcessInfo Class
Provides information on processes currently executing.
Assembly: System.Web (in System.Web.dll)
The ProcessInfo type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ProcessInfo() | Initializes a new instance of the ProcessInfo class. |
![]() | ProcessInfo(DateTime, TimeSpan, Int32, Int32, ProcessStatus, ProcessShutdownReason, Int32) | Initializes a new instance of the ProcessInfo class and sets internal information indicating the status of the process. |
| Name | Description | |
|---|---|---|
![]() | Age | Gets the length of time the process has been running. |
![]() | PeakMemoryUsed | Gets the maximum amount of memory the process has used. |
![]() | ProcessID | Gets the ID number assigned to the process. |
![]() | RequestCount | Gets the number of start requests for the process. |
![]() | ShutdownReason | Gets a value that indicates why the process shut down. |
![]() | StartTime | Gets the time at which the process started. |
![]() | Status | Gets the current status of the process. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | SetAll | Sets internal information indicating the status of the process. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
This class returns information about ASP.NET worker processes that are running under the ASP.NET process model. Objects of this type are returned by the static methods ProcessModelInfo::GetCurrentProcessInfo and ProcessModelInfo::GetHistory. These methods are the only useful ways to create an initialized object.
Note |
|---|
If you are using Microsoft Internet Information Services (IIS) 6.0, process metrics returned by the ProcessInfo classes are available only if you are running in IIS 5.0 isolation mode. If you are using IIS 6.0 in worker process isolation mode, the ASP.NET process model is disabled and an HttpException exception is thrown when you access ProcessInfo members. |
The following code example demonstrates using the Age, PeakMemoryUsed, ProcessID, RequestCount, ShutdownReason, StartTime and Status properties of the ProcessInfo class. The example displays a LinkButton. When the LinkButton is clicked, the current process information is displayed.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.



Note