Condividi tramite


HttpRuntimeSection.ShutdownTimeout Proprietà

Definizione

Ottiene o imposta il tempo di inattività dell'applicazione prima che venga terminato.

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

Valore della proprietà

Valore TimeSpan che indica il periodo di inattività dell'applicazione prima che venga terminato.

Attributi

Esempio

Nell'esempio seguente viene illustrato come utilizzare la ShutdownTimeout proprietà .

// 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)

Commenti

La ShutdownTimeout proprietà indica la quantità di tempo prima che un'applicazione venga arrestata normalmente. Il valore predefinito è 90 secondi.

Si applica a