HttpRuntimeSection.ShutdownTimeout Properti

Definisi

Mendapatkan atau mengatur lamanya waktu aplikasi diizinkan untuk menganggur sebelum dihentikan.

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

Nilai Properti

TimeSpan Nilai yang menunjukkan lamanya waktu aplikasi diizinkan untuk menganggur sebelum dihentikan.

Atribut

Contoh

Contoh berikut menunjukkan cara menggunakan ShutdownTimeout properti .

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

Keterangan

Properti ShutdownTimeout menunjukkan jumlah waktu sebelum aplikasi dimatikan dengan lancar. Defaultnya adalah 90 detik.

Berlaku untuk