HostingEnvironmentSection.ShutdownTimeout Property
.NET Framework (current version)
Gets or sets the amount of time, in seconds, to gracefully shut down the application.
Assembly: System.Web (in System.Web.dll)
<ConfigurationPropertyAttribute("shutdownTimeout", DefaultValue := "00:00:30")> <TypeConverterAttribute(GetType(TimeSpanSecondsConverter))> <TimeSpanValidatorAttribute(MinValueString := "00:00:00", MaxValueString := "10675199.02:48:05.4775807")> Public Property ShutdownTimeout As TimeSpan
Property Value
Type: System.TimeSpanA TimeSpan that is the specified number of seconds to gracefully shut down the application. The default is 30 seconds.
The default value for the ShutdownTimeout property is 30 seconds. This setting can be set at the machine or application level. If this setting is defined at any other configuration level, it is ignored. If a debugger is attached to the application, the application will not be shut down.
The following code example shows how to use the ShutdownTimeout property. This code example is part of a larger example provided for the HostingEnvironmentSection class.
.NET Framework
Available since 2.0
Available since 2.0
Show: