Bagikan melalui


HttpRuntimeSection.DelayNotificationTimeout Properti

Definisi

Mendapatkan atau mengatur penundaan pemberitahuan perubahan.

public:
 property TimeSpan DelayNotificationTimeout { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsConverter))]
[System.Configuration.ConfigurationProperty("delayNotificationTimeout", DefaultValue="00:00:05")]
public TimeSpan DelayNotificationTimeout { get; set; }
[System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsConverter))]
[System.Configuration.ConfigurationProperty("delayNotificationTimeout", DefaultValue="00:00:00")]
public TimeSpan DelayNotificationTimeout { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsConverter))>]
[<System.Configuration.ConfigurationProperty("delayNotificationTimeout", DefaultValue="00:00:05")>]
member this.DelayNotificationTimeout : TimeSpan with get, set
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsConverter))>]
[<System.Configuration.ConfigurationProperty("delayNotificationTimeout", DefaultValue="00:00:00")>]
member this.DelayNotificationTimeout : TimeSpan with get, set
Public Property DelayNotificationTimeout As TimeSpan

Nilai Properti

Waktu, dalam detik, yang menentukan penundaan pemberitahuan perubahan.

Atribut

Contoh

Contoh berikut menunjukkan cara menggunakan DelayNotificationTimeout properti .

// Get the DelayNotificationTimeout property value.
Response.Write("DelayNotificationTimeout: " +
  configSection.DelayNotificationTimeout.ToString() + "<br>");

// Set the DelayNotificationTimeout property value to 10 seconds.
configSection.DelayNotificationTimeout = TimeSpan.FromSeconds(10);
' Get the DelayNotificationTimeout property value.
Response.Write("DelayNotificationTimeout: " & _
  configSection.DelayNotificationTimeout.ToString() & "<br>")

' Set the DelayNotificationTimeout property value to 10 seconds.
configSection.DelayNotificationTimeout = TimeSpan.FromSeconds(10)

Keterangan

Anda dapat mengatasi masalah yang disebabkan oleh beberapa aplikasi antivirus, saat menulis informasi kembali ke file yang dipindai, dengan mengatur DelayNotificationTimeout properti .

Nota

Masalah terjadi karena perubahan file yang disebabkan oleh pemindaian antivirus tidak dapat dibedakan dari yang dibuat oleh pengguna. Hasil akhirnya adalah mulai ulang aplikasi yang filenya sedang dipindai.

Berlaku untuk