asp.net.ph

HostingEnvironmentSection Class

System.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.

HostingEnvironmentSection Class Members

Collapse   Constructors

Visibility Constructor Parameters
public HostingEnvironmentSection ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public IdleTimeout TimeSpan [ Get , Set ]
public ShadowCopyBinAssemblies Boolean [ Get , Set ]
public ShutdownTimeout TimeSpan [ Get , Set ]
public UrlMetadataSlidingExpiration TimeSpan [ Get , Set ]

Remarks

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.

Example

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>
See Also

ASP.NET Configuration   <hostingEnvironment> Section Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 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 asp.net.ph