HttpRuntimeSection.ShutdownTimeout Propriedade

Definição

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.

Aplica-se a