WebProcessStatistics.RequestsRejected 属性

定义

获取被拒绝的请求数。

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

属性值

Int32

被拒绝的请求数。

示例

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

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

注解

此值 RequestsRejected 是重载或故障系统的有用指示器。

适用于