語言

HttpRuntimeSection.WaitChangeNotification 屬性

定義

接收或設定下一次變更通知前的等待時間。

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

屬性值

等待時間,也就是下一次變更通知觸發應用程式域重啟前的幾秒鐘。 預設值為 0。

屬性

範例

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

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

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

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

備註

建議的值 WaitChangeNotification 會超過部署過程中完成副本的時間。

Note

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

適用於

另請參閱