语言

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 将超过在部署过程中完成副本的时间长度。

注释

如果在复制和部署过程后立即查看内容,可能会缓存该内容。 这是典型的行为。 更改在指定的等待期已过时生效。

适用于

另请参阅