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)
Visual Basic (Declaration)
<TypeConverterAttribute(GetType(TimeSpanMinutesOrInfiniteConverter))> _
<ConfigurationPropertyAttribute("idleTimeout", DefaultValue := "10675199.02:48:05.4775807")> _
<TimeSpanValidatorAttribute(MinValueString := "00:00:00", MaxValueString := "10675199.02:48:05.4775807")> _
Public Property IdleTimeout As TimeSpan
Dim instance As HostingEnvironmentSection
Dim value As TimeSpan
value = instance.IdleTimeout
instance.IdleTimeout = value
[TypeConverterAttribute(typeof(TimeSpanMinutesOrInfiniteConverter))]
[ConfigurationPropertyAttribute("idleTimeout", DefaultValue = "10675199.02:48:05.4775807")]
[TimeSpanValidatorAttribute(MinValueString = "00:00:00", MaxValueString = "10675199.02:48:05.4775807")]
public TimeSpan IdleTimeout { get; set; }
[TypeConverterAttribute(typeof(TimeSpanMinutesOrInfiniteConverter))]
[ConfigurationPropertyAttribute(L"idleTimeout", DefaultValue = L"10675199.02:48:05.4775807")]
[TimeSpanValidatorAttribute(MinValueString = L"00:00:00", MaxValueString = L"10675199.02:48:05.4775807")]
public:
property TimeSpan IdleTimeout {
TimeSpan get ();
void set (TimeSpan value);
}
public function get IdleTimeout () : TimeSpan
public function set IdleTimeout (value : TimeSpan)
Property Value
Type:
System..::.TimeSpanA 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.
' Display the IdleTimout property
Console.WriteLine("Idle Timeout: {0}", configSection.IdleTimeout)
// Display IdleTimout property
Console.WriteLine("Idle Timeout: {0}", configSection.IdleTimeout);
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.NET Framework
Supported in: 3.5, 3.0, 2.0
Reference