Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Defines configuration settings that control the behavior of the application hosting environment.
Syntax
class HostingEnvironmentSection : ConfigurationSection
Methods
The following table lists the methods exposed by the HostingEnvironmentSection
class.
Name | Description |
---|---|
GetAllowDefinition | (Inherited from ConfigurationSection.) |
GetAllowLocation | (Inherited from ConfigurationSection .) |
RevertToParent | (Inherited from ConfigurationSection .) |
SetAllowDefinition | (Inherited from ConfigurationSection .) |
SetAllowLocation | (Inherited from ConfigurationSection .) |
Properties
The following table lists the properties exposed by the HostingEnvironmentSection
class.
Name | Description |
---|---|
IdleTimeout |
An optional read/write datetime value that specifies the interval of time that is allowed to pass before an inactive application is unloaded. The default is infinite. |
Location |
(Inherited from ConfigurationSection .) A key property. |
Path |
(Inherited from ConfigurationSection .) A key property. |
SectionInformation |
(Inherited from ConfigurationSection .) |
ShadowCopyBinAssemblies |
An optional read/write boolean value. true if the assemblies of an application in the Bin directory are shadow copied to the application's ASP.NET Temporary Files directory; otherwise, false . The default is true . |
ShutdownTimeout |
An optional read/write datetime value that specifies the amount of time allowed for an application to gracefully shut down. The default is 30 seconds. |
Subclasses
This class contains no subclasses.
Inheritance Hierarchy
HostingEnvironmentSection
Requirements
Type | Description |
---|---|
Client | - IIS 7.0 on Windows Vista - IIS 7.5 on Windows 7 - IIS 8.0 on Windows 8 - IIS 10.0 on Windows 10 |
Server | - IIS 7.0 on Windows Server 2008 - IIS 7.5 on Windows Server 2008 R2 - IIS 8.0 on Windows Server 2012 - IIS 8.5 on Windows Server 2012 R2 - IIS 10.0 on Windows Server 2016 |
Product | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 |
MOF file | WebAdministration.mof |
See Also
ConfigurationSection Class
hostingEnvironment Element (ASP.NET Settings Schema)
CIM_DATETIME