TraceSection.MostRecent プロパティ

定義

最新の要求が常にサーバーに格納されるかどうかを示す値を取得または設定します。

public:
 property bool MostRecent { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("mostRecent", DefaultValue=false)]
public bool MostRecent { get; set; }
[<System.Configuration.ConfigurationProperty("mostRecent", DefaultValue=false)>]
member this.MostRecent : bool with get, set
Public Property MostRecent As Boolean

プロパティ値

true 最新の要求が常にトレース ログに格納されている場合。それ以外の場合は false。 既定値は、false です。

属性

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


// Get the current MostRecent property value.
Boolean mostRecentValue = traceSection.MostRecent;

// Set the MostRecent property to true.
traceSection.MostRecent = true;

' Get the current MostRecent property value.
Dim mostRecentValue As Boolean = traceSection.MostRecent

' Set the MostRecent property to true.
traceSection.MostRecent = True

注釈

要求は、 RequestLimit プロパティで指定された要求の数まで、到着した順序でトレース ログに格納されます。 要求の制限に達し、 MostRecenttrueされると、古い要求は自動的に破棄され、新しい要求は引き続きログに追加されます。 要求の制限に達し、 MostRecentfalseされると、以前の要求がログから削除されるか、要求の制限が引き上げられるまで、新しい要求は破棄されます。

適用対象

こちらもご覧ください