TraceSection.RequestLimit 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
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 서버에 저장된 요청이 가장 최근의 요청인지 또는 도착하는 첫 번째 요청인지를 결정하는 값을 가져오거나 설정합니다.
참고 요청 수가 이 설정에 의해 부과된 제한을 초과하고 MostRecent 있는 경우 false더 이상 요청이 추적 로그에 저장되지 않습니다. 이 true경우 MostRecent 가장 최근의 요청은 이 설정에 의해 적용되는 제한까지 저장되고 이전 요청은 삭제됩니다.