WebProcessStatistics.RequestsQueued 属性

定义

获取等待处理的请求数。

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

属性值

等待处理的请求数。

示例

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

public string GetRequestsQueued()
{
    // Get the requests queued.
    return (string.Format(
        "Requests queued: {0}",
        processStatistics.RequestsQueued.ToString()));
}
Public Function GetRequestsQueued() As String
    ' Get the requests queued.
    Return String.Format( _
    "Requests queued: {0}", _
    processStatistics.RequestsQueued.ToString())
End Function 'GetRequestsQueued

注解

RequestsQueued 是有用的负载指示器。

适用于