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

屬性值

Int32

第一個變更告知與重新啟動應用程式定義域之間的最大時間間隔 (以秒為單位)。

屬性

範例

下列範例將示範如何使用 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 會超過在部署程式期間完成複本的時間長度。

注意

如果您在複製和部署程式之後立即檢視內容,可能會快取內容。 這是典型的行為。 當您指定的等候期間經過時,變更就會生效。

適用於

另請參閱