HttpRuntimeSection.ExecutionTimeout
HttpRuntimeSection.ExecutionTimeout
HttpRuntimeSection.ExecutionTimeout
HttpRuntimeSection.ExecutionTimeout
Property
定義
要求の最大実行時間を取得または設定します。Gets or sets the allowed execution time for the request.
public:
property TimeSpan ExecutionTimeout { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsConverter))]
[System.Configuration.ConfigurationProperty("executionTimeout", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
[System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")]
public TimeSpan ExecutionTimeout { get; set; }
member this.ExecutionTimeout : TimeSpan with get, set
Public Property ExecutionTimeout As TimeSpan
プロパティ値
例外
要求実行時間が、実行タイムアウトによって設定された時間制限を超過しました。The request execution time exceeded the limit set by the execution time-out.
例
ExecutionTimeout プロパティを使用する方法を次の例に示します。The following example shows how to use the ExecutionTimeout property.
// 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 によって自動的にシャット ダウンされる前に実行する許容される秒の最大数を示します。The ExecutionTimeout property indicates the maximum number of seconds a request is allowed to execute before being automatically shut down by ASP.NET. 既定では 110 秒です。The default is 110 seconds. このタイムアウトは、デバッグ属性する場合にのみ、<compilation>要素に設定されてfalseします。This time-out applies only if the debug attribute in the <compilation> element is set to false.
タイムアウトに達すると、例外が発生します。If the time-out expires an exception is raised. イベント ログのアプリケーションのフォルダーに関連する情報を記録できます。You can record the related information in the Application folder of the Event Log. アプリケーションの正常性監視で有効にすると、これを行う、<healthMonitoring>構成要素。You do this by enabling the application health monitoring in the <healthMonitoring> configuration element.