Freigeben über


HttpRuntimeSection.DelayNotificationTimeout Eigenschaft

Definition

Ruft die Änderungsbenachrichtigungsverzögerung ab oder legt sie fest.

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

Eigenschaftswert

Die Zeit in Sekunden, die die Änderungsbenachrichtigungsverzögerung angibt.

Attribute

Beispiele

Das folgende Beispiel zeigt, wie die DelayNotificationTimeout Eigenschaft verwendet wird.

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

Hinweise

Sie können das Problem beheben, das durch einige Antivirenanwendungen verursacht wird, wenn Sie Informationen zurück in die gescannten Dateien schreiben, indem Sie die DelayNotificationTimeout Eigenschaft festlegen.

Hinweis

Das Problem tritt auf, da Dateiänderungen, die durch die Antivirenüberprüfung verursacht werden, nicht von den vom Benutzer vorgenommenen Änderungen unterschieden werden können. Das Endergebnis ist der Neustart der Anwendung, deren Dateien gescannt werden.

Gilt für: