HostingEnvironmentSection Class
Defines configuration settings that control the behavior of the application hosting environment. This class cannot be inherited.
Assembly: System.Web (in System.Web.dll)
The HostingEnvironmentSection class provides a way to programmatically access and modify the values of the HostingEnvironmentSection section in the configuration file.When an ASP.NET application is unused for a specified amount of time, it can be unloaded from memory based on the IdleTimeout and ShutdownTimeout properties.
This example demonstrates how to specify values declaratively for several attributes of the hostingEnvironment Element (ASP.NET Settings Schema) section, which can also be accessed as members of the HostingEnvironmentSection class.
The following configuration file example shows how to specify values declaratively for the hostingEnvironment Element (ASP.NET Settings Schema) section.
<system.web>
<hostingEnvironment
idleTimeout="20"
shutdownTimeout="30"
/>
</system.web>
The following code example demonstrates how to use the HostingEnvironmentSection class.
System.Configuration.ConfigurationElement
System.Configuration.ConfigurationSection
System.Web.Configuration.HostingEnvironmentSection
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.