| ||||||||||||||||||||||||||
HostingEnvironmentSection ClassSystem.Web.Configuration Namespace .NET Framework version 2.0 Defines configuration settings that control the behavior of the application hosting environment. This class cannot be inherited.
|
||||||||||||||||||||||||||
| Visibility | Name | Value Type | Accessibility |
|---|---|---|---|
| public | IdleTimeout | TimeSpan | [ Get , Set ] |
| public | ShadowCopyBinAssemblies | Boolean | [ Get , Set ] |
| public | ShutdownTimeout | TimeSpan | [ Get , Set ] |
The HostingEnvironmentSection class provides a way to programmatically access and modify the hostingEnvironment section of a 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 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 section.
<system.web>
<hostingEnvironment
idleTimeout = "20"
shutdownTimeout = "30"
/>
</system.web>
ASP.NET Configuration <hostingEnvironment> Section
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme