This documentation is archived and is not being maintained.

ProcessInfo Constructor (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.

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

public ProcessInfo(
	DateTime startTime,
	TimeSpan age,
	int processID,
	int requestCount,
	ProcessStatus status,
	ProcessShutdownReason shutdownReason,
	int peakMemoryUsed
)

Parameters

startTime
Type: System.DateTime
A DateTime that indicates the time at which the process started.
age
Type: System.TimeSpan
The TimeSpan that indicates the time elapsed since the process started.
processID
Type: System.Int32
The ID number assigned to the process.
requestCount
Type: System.Int32
The number of start requests for the process.
status
Type: System.Web.ProcessStatus
One of the ProcessStatus values that indicates the current status of the process.
shutdownReason
Type: System.Web.ProcessShutdownReason
One of the ProcessShutdownReason values.
peakMemoryUsed
Type: System.Int32
The maximum memory used, in kilobytes (KB).

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 ProcessInfo object.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

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.
Show: