WebProcessStatistics.RequestsRejected Property

 

Gets the number of rejected requests.

Namespace:   System.Web.Management
Assembly:  System.Web (in System.Web.dll)

public int RequestsRejected { get; }

Property Value

Type: System.Int32

The number of rejected requests.

This RequestsRejected value is a useful indicator of an overloaded or malfunctioning system.

The following code example shows how to get the RequestsRejected value.

public string GetRequestsRejected()
{
    // Get the requests rejected.
    return (string.Format(
        "Requests rejected: {0}",
        processStatistics.RequestsRejected.ToString()));
}

.NET Framework
Available since 2.0
Return to top
Show: