BuildManager.BatchCompilationEnabled 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指示是否啟用批次編譯。
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)
屬性值
true 如果批次編譯一直啟用,批 false 次編譯從未啟用,或 null 編譯設定是從設定檔決定的。 預設值為 null。
例外狀況
該屬性並未在方法中 PreApplicationStart 設定。
備註
這個特性讓你能以程式化方式開啟或關閉批次編譯。 它對 batch 應於 Web.config 檔案中元素 compilation 的屬性。 欲了解更多資訊,請參閱 編譯元素(ASP.NET 設定架構)。
該屬性只能在方法 PreApplicationStart 中設定。 欲了解更多方法資訊 PreApplicationStart ,請參見 PreApplicationStartMethodAttribute。