HostingEnvironmentSection::IdleTimeout Property
.NET Framework (current version)
Gets or sets the amount of time, in minutes, before unloading an inactive application.
Assembly: System.Web (in System.Web.dll)
public: [ConfigurationPropertyAttribute("idleTimeout", DefaultValue = "10675199.02:48:05.4775807")] [TypeConverterAttribute((TimeSpanMinutesOrInfiniteConverter^::typeid))] [TimeSpanValidatorAttribute(MinValueString = "00:00:00", MaxValueString = "10675199.02:48:05.4775807")] property TimeSpan IdleTimeout { TimeSpan get(); void set(TimeSpan value); }
Property Value
Type: System::TimeSpanA TimeSpan that is the specified number of minutes before unloading an inactive application.
The default value for the IdleTimeout property is "Infinite". 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.
.NET Framework
Available since 2.0
Available since 2.0
Show: