ProcessModelSection.IdleTimeout Property

 

Gets or sets a value indicating the period of inactivity after which ASP.NET automatically ends the worker process.

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

<ConfigurationPropertyAttribute("idleTimeout", DefaultValue := "10675199.02:48:05.4775807")>
<TypeConverterAttribute(GetType(InfiniteTimeSpanConverter))>
Public Property IdleTimeout As TimeSpan

Property Value

Type: System.TimeSpan

A TimeSpan value indicating the idle time. The default value is Infinite, which corresponds to MaxValue.

The worker process is restarted (bounced) when the IdleTimeout property value is reached. By default, only two conditions cause the process to bounce: the process exceeds the allowed memory limit, or the process exceeds the allowed number of requests that can be queued. You can add other conditions to the default ones. For example, you can use the IdleTimeout property to limit the time the worker process is idle.

The following code example shows how to access the IdleTimeout property.

' Get the current IdleTimeout property value.
   Dim idleTimeout As TimeSpan = _
   processModelSection.IdleTimeout

' Set the IdleTimeout property to TimeSpan.Parse("12:00:00").
   processModelSection.IdleTimeout = _
   TimeSpan.Parse("12:00:00")

.NET Framework
Available since 2.0
Return to top
Show: