WebProcessStatistics.RequestsExecuting 属性

定义

获取当前执行的请求数。

public:
 property int RequestsExecuting { int get(); };
public int RequestsExecuting { get; }
member this.RequestsExecuting : int
Public ReadOnly Property RequestsExecuting As Integer

属性值

Int32

进程当前正在执行的请求数。

示例

下面的代码示例演示如何获取 RequestsExecuting 值。

public string GetRequestsExecuting()
{
    // Get the requests in execution.
    return (string.Format(
        "Requests executing: {0}",
        processStatistics.RequestsExecuting.ToString()));
}
Public Function GetRequestsExecuting() As String
    ' Get the requests in execution.
    Return String.Format( _
    "Requests executing: {0}", _
    processStatistics.RequestsExecuting.ToString())
End Function 'GetRequestsExecuting

注解

该值 RequestsExecuting 是一个有用的负载指示器。

适用于