WebProcessStatistics.RequestsExecuting 屬性

定義

取得目前執行中的要求個數。

C#
public int RequestsExecuting { get; }

屬性值

此處理序目前執行中的要求個數。

範例

下列程式碼範例示範如何取得 RequestsExecuting 值。

C#
public string GetRequestsExecuting()
{
    // Get the requests in execution.
    return (string.Format(
        "Requests executing: {0}",
        processStatistics.RequestsExecuting.ToString()));
}

備註

此值 RequestsExecuting 是實用的負載指標。

適用於

產品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1