HostingEnvironmentSection.IdleTimeout Property

Definition

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

[System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanMinutesOrInfiniteConverter))]
[System.Configuration.ConfigurationProperty("idleTimeout", DefaultValue="10675199.02:48:05.4775807")]
[System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")]
public TimeSpan IdleTimeout { get; set; }

Property Value

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

Attributes

Examples

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.

// Display IdleTimout property
Console.WriteLine("Idle Timeout: {0}", configSection.IdleTimeout);

Remarks

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.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1