BuildManager.BatchCompilationEnabled Eigenschap

Definitie

Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of batchcompilatie is ingeschakeld.

public:
 static property Nullable<bool> BatchCompilationEnabled { Nullable<bool> get(); void set(Nullable<bool> value); };
public static bool? BatchCompilationEnabled { get; set; }
static member BatchCompilationEnabled : Nullable<bool> with get, set
Public Shared Property BatchCompilationEnabled As Nullable(Of Boolean)

Waarde van eigenschap

true als batchcompilatie altijd is ingeschakeld, false als batchcompilatie nooit is ingeschakeld of null als de compilatie-instelling wordt bepaald vanuit het configuratiebestand. De standaardwaarde is null.

Uitzonderingen

De eigenschap is niet ingesteld in de PreApplicationStart methode.

Opmerkingen

Met deze eigenschap kunt u batchcompilatie programmatisch in- of uitschakelen. Het komt overeen met het batch kenmerk van het compilation element in het Web.config-bestand. Zie compilation Element (ASP.NET Settings Schema) voor meer informatie.

De eigenschap kan alleen worden ingesteld in de PreApplicationStart methode. Zie voor meer informatie over de PreApplicationStart methode PreApplicationStartMethodAttribute.

Van toepassing op