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

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

適用対象

こちらもご覧ください