Page.AsyncMode Page.AsyncMode Page.AsyncMode Page.AsyncMode Property


設定數值,表示同步或非同步處理頁面。Sets a value indicating whether the page is processed synchronously or asynchronously.

 property bool AsyncMode { bool get(); void set(bool value); };
protected bool AsyncMode { get; set; }
member this.AsyncMode : bool with get, set
Protected Property AsyncMode As Boolean


如果是非同步處理頁面,則為 true,否則為 falsetrue if the page is processed asynchronously; otherwise, false.


AsyncMode屬性由設定Page剖析器時產生程式碼頁面。The AsyncMode property is set by the Page parser when code for the page is generated. 使用Async屬性中@ Page指示詞,以設定此值。Use the Async attribute in @ Page directive to set this value.

非同步網頁無法運作時AspCompat屬性設定為trueTransaction以外的其他屬性設定為值Disabled@ Page指示詞。Asynchronous pages do not work when the AspCompat attribute is set to true or the Transaction attribute is set to a value other than Disabled in the @ Page directive.