HttpRuntimeSection.WaitChangeNotification 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置下一个更改通知之前的等待时间。
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 将超过在部署过程中完成副本的时间长度。
注释
如果在复制和部署过程后立即查看内容,可能会缓存该内容。 这是典型的行为。 更改在指定的等待期已过时生效。