HttpRuntimeSection.ShutdownTimeout Propriedade
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Obtém ou define o tempo que a aplicação pode permanecer inativa antes de ser terminada.
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
Valor de Propriedade
Um valor que indica o tempo que TimeSpan a aplicação pode permanecer inativa antes de ser terminada.
- Atributos
Exemplos
O exemplo seguinte mostra como utilizar a ShutdownTimeout propriedade.
// 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)
Observações
A ShutdownTimeout propriedade indica o tempo até que uma candidatura seja encerrada de forma rigorosa. O padrão é 90 segundos.