共用方式為


WebProcessStatistics.RequestsRejected 屬性

定義

取得被拒絕之要求的個數。

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

屬性值

被拒絕之要求的個數。

範例

下列程式碼範例示範如何取得 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 是多載或故障系統的實用指標。

適用於