語言

HttpRuntimeSection.MaxWaitChangeNotification 屬性

定義

取得或設定第一次變更通知與應用程式域重新啟動之間的時間間隔。

public:
 property int MaxWaitChangeNotification { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maxWaitChangeNotification", DefaultValue=0)]
[System.Configuration.IntegerValidator(MinValue=0)]
public int MaxWaitChangeNotification { get; set; }
[<System.Configuration.ConfigurationProperty("maxWaitChangeNotification", DefaultValue=0)>]
[<System.Configuration.IntegerValidator(MinValue=0)>]
member this.MaxWaitChangeNotification : int with get, set
Public Property MaxWaitChangeNotification As Integer

屬性值

從第一次變更通知到應用程式域重新啟動的時間,以秒為單位的最大時間區間。

屬性

範例

以下範例說明如何使用該 MaxWaitChangeNotification 屬性。

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

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

' Set the MaxWaitChangeNotification property value to 10 seconds.
configSection.MaxWaitChangeNotification = 10

備註

該物業的建議價值 MaxWaitChangeNotification 將超過部署過程中完成副本的時間。

Note

如果你在複製並部署後立即查看內容,可能會顯示為快取。 這是典型的行為。 變更會在您指定的等待期結束後生效。

適用於

另請參閱