Поделиться через


HttpRuntimeSection.DelayNotificationTimeout Свойство

Определение

Возвращает или задает задержку уведомления об изменении.

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

Значение свойства

Время в секундах, указывающее задержку уведомления об изменении.

Атрибуты

Примеры

В следующем примере показано, как использовать DelayNotificationTimeout свойство.

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

Комментарии

Вы можете устранить проблему, вызванную некоторыми антивирусными приложениями, при записи сведений обратно в сканированные файлы, задав DelayNotificationTimeout свойство.

Замечание

Проблема возникает, так как изменения файлов, вызванные антивирусной проверкой, не могут отличаться от тех, которые были сделаны пользователем. Конечный результат — перезапуск приложения, файлы которого сканируются.

Применяется к