共用方式為


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 來解決某些防毒軟體在將資訊寫回掃描檔案時所造成的問題。

備註

問題發生在防毒軟體掃描所造成的檔案變更,無法與使用者自行更改的檔案區分。 最終結果是重新啟動正在掃描檔案的應用程式。

適用於