Freigeben über


CompilationSection.NumRecompilesBeforeAppRestart Eigenschaft

Definition

Gibt die Anzahl dynamischer Neukompilierungen von Ressourcen an, die vor dem Neustart der Anwendung erfolgen können, oder legt diese fest.

public:
 property int NumRecompilesBeforeAppRestart { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("numRecompilesBeforeAppRestart", DefaultValue=15)]
public int NumRecompilesBeforeAppRestart { get; set; }
[<System.Configuration.ConfigurationProperty("numRecompilesBeforeAppRestart", DefaultValue=15)>]
member this.NumRecompilesBeforeAppRestart : int with get, set
Public Property NumRecompilesBeforeAppRestart As Integer

Eigenschaftswert

Int32

Ein Wert, der die Anzahl dynamischer Neukompilierungen von Ressourcen angibt, die vor dem Neustart der Anwendung erfolgen können. Der Standardwert ist 15 Neukompilierungen.

Attribute

Beispiele

Im folgenden Codebeispiel wird veranschaulicht, wie sie die NumRecompilesBeforeAppRestart Eigenschaft verwenden. Dieses Codebeispiel ist Teil eines größeren Beispiels, das für die CompilationSection Klasse bereitgestellt wird.

// Display NumRecompilesBeforeAppRestart property.
Console.WriteLine("NumRecompilesBeforeAppRestart: {0}", 
  configSection.NumRecompilesBeforeAppRestart);

// Set NumRecompilesBeforeAppRestart property.
configSection.NumRecompilesBeforeAppRestart = 15;
' Display NumRecompilesBeforeAppRestart property.
Console.WriteLine("NumRecompilesBeforeAppRestart: {0}", _
 configSection.NumRecompilesBeforeAppRestart)

' Set NumRecompilesBeforeAppRestart property.
configSection.NumRecompilesBeforeAppRestart = 15

Hinweise

Gibt die Anzahl der dynamischen Neukompilierungen von Ressourcen an, die auftreten können, bevor die Anwendung neu gestartet wird. Dieses Attribut wird auf globalen und Anwendungskonfigurationsebenen unterstützt, aber nicht auf Verzeichniskonfigurationsebene.

Hinweis

ASP.NET erhöht den NumRecompilesBeforeAppRestart Eigenschaftswert jedes Mal, wenn eine Assembly ungültig ist und nicht gelöscht werden kann.

Gilt für

Siehe auch