HttpRuntimeSection.ShutdownTimeout Özellik

Tanım

Uygulamanın sonlandırılmadan önce boşta kalma süresini alır veya ayarlar.

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

Özellik Değeri

TimeSpan Uygulamanın sonlandırılmadan önce boşta durmasına izin verilen süreyi gösteren değer.

Öznitelikler

Örnekler

Aşağıdaki örnekte özelliğinin nasıl kullanılacağı gösterilmektedir ShutdownTimeout .

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

Açıklamalar

özelliği, ShutdownTimeout bir uygulamanın düzgün bir şekilde kapatılması için gereken süreyi gösterir. Varsayılan değer 90 saniyedir.

Şunlara uygulanır