語言

ProcessInfo 建構函式

定義

初始化 ProcessInfo 類別的新執行個體。

多載

名稱 Description
ProcessInfo()

初始化 ProcessInfo 類別的新執行個體。

ProcessInfo(DateTime, TimeSpan, Int32, Int32, ProcessStatus, ProcessShutdownReason, Int32)

初始化該類別的新實例 ProcessInfo ,並設定內部資訊以指示程序的狀態。

ProcessInfo()

初始化 ProcessInfo 類別的新執行個體。

public:
 ProcessInfo();
public ProcessInfo();
Public Sub New ()

備註

此類別回傳在 ASP.NET 程序模型下運行的 ASP.NET 工作程序資訊。 此類物件由static方法ProcessModelInfo.GetCurrentProcessInfoProcessModelInfo.GetHistory和 返回。 這些方法是建立初始化 ProcessInfo 物件的唯一有用方法。

適用於

ProcessInfo(DateTime, TimeSpan, Int32, Int32, ProcessStatus, ProcessShutdownReason, Int32)

初始化該類別的新實例 ProcessInfo ,並設定內部資訊以指示程序的狀態。

public:
 ProcessInfo(DateTime startTime, TimeSpan age, int processID, int requestCount, System::Web::ProcessStatus status, System::Web::ProcessShutdownReason shutdownReason, int peakMemoryUsed);
public ProcessInfo(DateTime startTime, TimeSpan age, int processID, int requestCount, System.Web.ProcessStatus status, System.Web.ProcessShutdownReason shutdownReason, int peakMemoryUsed);
new System.Web.ProcessInfo : DateTime * TimeSpan * int * int * System.Web.ProcessStatus * System.Web.ProcessShutdownReason * int -> System.Web.ProcessInfo
Public Sub New (startTime As DateTime, age As TimeSpan, processID As Integer, requestCount As Integer, status As ProcessStatus, shutdownReason As ProcessShutdownReason, peakMemoryUsed As Integer)

參數

startTime
DateTime

A DateTime 表示該過程開始的時間點。

age
TimeSpan

TimeSpan那代表從程序開始到的時間。

processID
Int32

分配給流程的ID號碼。

requestCount
Int32

程序的啟動請求數量。

status
ProcessStatus

ProcessStatus這是表示程序目前狀態的其中一個數值。

shutdownReason
ProcessShutdownReason

這是其中一項 ProcessShutdownReason 價值。

peakMemoryUsed
Int32

最大記憶體使用量,以千位元組(KB)為單位。

備註

此類別回傳在 ASP.NET 程序模型下運行的 ASP.NET 工作程序資訊。 此類物件由靜態方法 ProcessModelInfo.GetCurrentProcessInfo 和 ProcessModelInfo.GetHistory返回。 這些方法是建立初始化 ProcessInfo 物件的唯一有用方法。

適用於