HostingEnvironmentSection.IdleTimeout Property

Gets or sets the amount of time, in minutes, before unloading an inactive application.

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

[TypeConverterAttribute(typeof(TimeSpanMinutesOrInfiniteConverter))] 
public:
property TimeSpan IdleTimeout {
	TimeSpan get ();
	void set (TimeSpan value);
}
/** @property */
public TimeSpan get_IdleTimeout ()

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

public function get IdleTimeout () : TimeSpan

public function set IdleTimeout (value : TimeSpan)

Not applicable.

Property Value

A TimeSpan that is the specified number of minutes before unloading an inactive application. The default is 20 minutes.

The default value for the IdleTimeout property is 20 minutes, which is the same default as the Timeout property. This setting can be set at the machine or application level. If this setting is defined at any other level, it is ignored.

The following code example shows how to use the IdleTimeout property. This code example is part of a larger example provided for the HostingEnvironmentSection class.

No code example is currently available or this language may not be supported.

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: