HostingEnvironmentSection Class
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