Share via


TraceSection.RequestLimit プロパティ

定義

アプリケーションに対して ASP.NET がトレース情報を格納する最大要求数を示す値を取得または設定します。

public:
 property int RequestLimit { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("requestLimit", DefaultValue=10)]
[System.Configuration.IntegerValidator(MinValue=0)]
public int RequestLimit { get; set; }
[<System.Configuration.ConfigurationProperty("requestLimit", DefaultValue=10)>]
[<System.Configuration.IntegerValidator(MinValue=0)>]
member this.RequestLimit : int with get, set
Public Property RequestLimit As Integer

プロパティ値

サーバー上に格納される最大要求数。 既定値は 10 です。

属性

次のコード例は、RequestLimit プロパティの使用方法を示しています。 このコード例は、TraceSection クラスのために提供されている大規模な例の一部です。


// Get the current RequestLimit property value.
Int32 requestLimitValue = traceSection.RequestLimit;

// Set the RequestLimit property to 256.
traceSection.RequestLimit = 256;

' Get the current RequestLimit property value.
Dim requestLimitValue As Int32 = traceSection.RequestLimit

' Set the RequestLimit property to 256.
traceSection.RequestLimit = 256

注釈

要求の上限は 10,000 です。 10,000 より大きい値を指定すると、ASP.NET によって 10,000 に自動的に切り捨てられます。

プロパティは MostRecent 、サーバーに格納されている要求が最新の要求であるか、最初に到着する要求であるかを決定する値を取得または設定します。

メモ 要求の数がこの設定 MostRecent によって課される制限を超え、 が の false場合、それ以上の要求はトレース ログに格納されません。 が trueの場合MostRecent、最新の要求はこの設定によって課される制限まで格納され、古い要求は破棄されます。

適用対象

こちらもご覧ください