Udostępnij za pośrednictwem


HttpRuntimeSection.DelayNotificationTimeout Właściwość

Definicja

Pobiera lub ustawia opóźnienie powiadamiania o zmianie.

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

Wartość właściwości

Czas w sekundach określający opóźnienie powiadamiania o zmianie.

Atrybuty

Przykłady

W poniższym przykładzie pokazano, jak używać DelayNotificationTimeout właściwości .

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

Uwagi

Problem spowodowany przez niektóre aplikacje antywirusowe można rozwiązać podczas zapisywania informacji z powrotem do zeskanowanych plików, ustawiając DelayNotificationTimeout właściwość .

Uwaga / Notatka

Problem występuje, ponieważ zmiany plików spowodowane skanowaniem programu antywirusowego nie mogą być rozróżniane od tych, które zostały wprowadzone przez użytkownika. Wynikiem końcowym jest ponowne uruchomienie aplikacji, której pliki są skanowane.

Dotyczy