HttpRuntimeSection.ExecutionTimeout 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
요청에 허용되는 실행 시간을 가져오거나 설정합니다.
public:
property TimeSpan ExecutionTimeout { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsConverter))]
[System.Configuration.ConfigurationProperty("executionTimeout", DefaultValue="00:01:50")]
[System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")]
public TimeSpan ExecutionTimeout { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsConverter))>]
[<System.Configuration.ConfigurationProperty("executionTimeout", DefaultValue="00:01:50")>]
[<System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")>]
member this.ExecutionTimeout : TimeSpan with get, set
Public Property ExecutionTimeout As TimeSpan
속성 값
TimeSpan 요청에 허용되는 실행 시간을 나타내는 값입니다.
- 특성
예외
요청 실행 시간이 실행 제한 시간으로 설정된 제한을 초과했습니다.
예제
다음 예제에서는 속성을 사용 하는 방법을 보여 있습니다 ExecutionTimeout .
// Get the ExecutionTimeout property value.
Response.Write("ExecutionTimeout: " +
configSection.ExecutionTimeout.ToString() + "<br>");
// Set the ExecutionTimeout property value to 2 minutes.
configSection.ExecutionTimeout = TimeSpan.FromMinutes(2);
' Get the ExecutionTimeout property value.
Response.Write("ExecutionTimeout: " & _
configSection.ExecutionTimeout.ToString() & "<br>")
' Set the ExecutionTimeout property value to 2 minutes.
configSection.ExecutionTimeout = TimeSpan.FromMinutes(2)
설명
이 속성은 ExecutionTimeout ASP.NET 의해 자동으로 종료되기 전에 요청을 실행할 수 있는 최대 시간(초)을 나타냅니다. 기본값은 110초입니다. 이 제한 시간은 요소의 디버그 특성 <compilation> 이 로 설정된 false경우에만 적용됩니다.
제한 시간이 만료되면 예외가 발생합니다. 이벤트 로그의 애플리케이션 폴더에 관련 정보를 기록할 수 있습니다. 구성 요소에서 <healthMonitoring> 애플리케이션 상태 모니터링을 사용하도록 설정하여 이 작업을 수행합니다.