HttpRuntimeSection.ExecutionTimeout 속성

정의

요청에 대해 허용된 실행 시간을 가져오거나 설정합니다.

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

요청에 대해 허용된 실행 시간을 나타내는 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> 애플리케이션 상태 모니터링을 사용하도록 설정하여 이 작업을 수행합니다.

적용 대상