Condividi tramite


HttpRuntimeSection.WaitChangeNotification Proprietà

Definizione

Ottiene o imposta il tempo di attesa prima della notifica di modifica successiva.

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

Valore della proprietà

Tempo di attesa, in secondi, prima della notifica di modifica successiva che attiva il riavvio di un dominio applicazione. Il valore predefinito è 0.

Attributi

Esempio

Nell'esempio seguente viene illustrato come utilizzare la WaitChangeNotification proprietà .

// 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

Commenti

Un valore suggerito per WaitChangeNotification supera il periodo di tempo necessario per completare una copia durante il processo di distribuzione.

Annotazioni

Il contenuto potrebbe essere memorizzato nella cache se viene visualizzato immediatamente dopo un processo di copia e distribuzione. Si tratta di un comportamento tipico. Le modifiche diventano effettive quando è trascorso il periodo di attesa specificato.

Si applica a

Vedi anche