Share via


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 格納されます。 要求の制限に達し MostRecent 、 が の場合、 true古い要求は自動的に破棄され、新しい要求は引き続きログに追加されます。 要求の制限に達し MostRecent 、 が の場合、 false以前の要求がログから削除されるか、要求の制限が引き上げられるまで、新しい要求は破棄されます。

適用対象

こちらもご覧ください