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

定義

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

protected:
 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.

適用於