Export (0) Print
Expand All

HttpRuntimeSection.ExecutionTimeout Property

Gets or sets the allowed execution time for the request.

Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)

[TypeConverterAttribute(typeof(TimeSpanSecondsConverter))] 
public TimeSpan ExecutionTimeout { get; set; }
/** @property */
public TimeSpan get_ExecutionTimeout ()

/** @property */
public void set_ExecutionTimeout (TimeSpan value)

public function get ExecutionTimeout () : TimeSpan

public function set ExecutionTimeout (value : TimeSpan)

Not applicable.

Property Value

A TimeSpan value that indicates the allowed execution time for the request.

The ExecutionTimeout property indicates the maximum number of seconds a request is allowed to execute before being automatically shut down by ASP.NET. The default is 90 seconds.

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);

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft