HttpRuntimeSection.ShutdownTimeout Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient ou définit la durée pendant laquelle l’application est autorisée à s’inactiver avant son arrêt.
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
Valeur de propriété
Valeur TimeSpan qui indique la durée pendant laquelle l’application est autorisée à s’inactiver avant son arrêt.
- Attributs
Exemples
L’exemple suivant montre comment utiliser la ShutdownTimeout propriété.
// 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)
Remarques
La ShutdownTimeout propriété indique la durée d’arrêt normale d’une application. La valeur par défaut est 90 secondes.