TraceSection.MostRecent 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
가장 최근 요청이 항상 서버에 저장되는지 여부를 나타내는 값을 가져오거나 설정합니다.
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로그에서 제거되거나 요청 제한이 증가할 때까지 새 요청이 삭제됩니다.