HttpRuntimeSection.ShutdownTimeout Eigenschap
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee wordt de tijdsduur opgehaald of ingesteld die de toepassing mag inactief maken voordat deze wordt beëindigd.
public:
property TimeSpan ShutdownTimeout { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsConverter))]
[System.Configuration.ConfigurationProperty("shutdownTimeout", DefaultValue="00:01:30")]
public TimeSpan ShutdownTimeout { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsConverter))>]
[<System.Configuration.ConfigurationProperty("shutdownTimeout", DefaultValue="00:01:30")>]
member this.ShutdownTimeout : TimeSpan with get, set
Public Property ShutdownTimeout As TimeSpan
Waarde van eigenschap
Een TimeSpan waarde die aangeeft hoe lang de toepassing inactief mag zijn voordat deze wordt beëindigd.
- Kenmerken
Voorbeelden
In het volgende voorbeeld ziet u hoe u de ShutdownTimeout eigenschap gebruikt.
// Get the ShutdownTimeout property value.
Response.Write("ShutdownTimeout: " +
configSection.ShutdownTimeout.ToString() + "<br>");
// Set the ShutdownTimeout property value to 2 minutes.
configSection.ShutdownTimeout = TimeSpan.FromMinutes(2);
' Get the ShutdownTimeout property value.
Response.Write("ShutdownTimeout: " & _
configSection.ShutdownTimeout.ToString() & "<br>")
' Set the ShutdownTimeout property value to 2 minutes.
configSection.ShutdownTimeout = TimeSpan.FromMinutes(2)
Opmerkingen
De ShutdownTimeout eigenschap geeft de hoeveelheid tijd aan voordat een toepassing correct wordt afgesloten. De standaardwaarde is 90 seconden.