ProcessModelSection.ShutdownTimeout Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan atau menetapkan nilai yang menunjukkan waktu yang diizinkan agar proses pekerja dimatikan.
public:
property TimeSpan ShutdownTimeout { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))]
[System.Configuration.ConfigurationProperty("shutdownTimeout", DefaultValue="00:00:05")]
[System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")]
public TimeSpan ShutdownTimeout { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))>]
[<System.Configuration.ConfigurationProperty("shutdownTimeout", DefaultValue="00:00:05")>]
[<System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")>]
member this.ShutdownTimeout : TimeSpan with get, set
Public Property ShutdownTimeout As TimeSpan
Nilai Properti
Menentukan TimeSpan interval. Defaultnya adalah 5 detik.
- Atribut
Contoh
Contoh kode berikut menunjukkan cara menggunakan ShutdownTimeout properti .
// Get the current ShutdownTimeout property value.
TimeSpan shutDownTimeout =
processModelSection.ShutdownTimeout;
// Set the ShutdownTimeout property to
// TimeSpan.Parse("00:00:30").
processModelSection.ShutdownTimeout =
TimeSpan.Parse("00:00:30");
' Get the current ShutdownTimeout property value.
Dim shutDownTimeout As TimeSpan = _
processModelSection.ShutdownTimeout
' Set the ShutdownTimeout property to
' TimeSpan.Parse("00:00:30").
processModelSection.ShutdownTimeout = _
TimeSpan.Parse("00:00:30")
Keterangan
Properti ini menentukan jumlah menit yang diizinkan bagi proses pekerja untuk mematikan dirinya sendiri dengan lancar. Ketika batas waktu berakhir, ASP.NET mematikan proses pekerja secara paksa.