语言

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

注释

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

适用于

另请参阅