다음을 통해 공유


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로그에서 제거되거나 요청 제한이 증가할 때까지 새 요청이 삭제됩니다.

적용 대상

추가 정보