Page.IsAsync Page.IsAsync Page.IsAsync Page.IsAsync Property

定義

取得值,指出是否非同步處理頁面。Gets a value indicating whether the page is processed asynchronously.

public:
 property bool IsAsync { bool get(); };
public bool IsAsync { get; }
member this.IsAsync : bool
Public ReadOnly Property IsAsync As Boolean

屬性值

如果頁面處於非同步模式,則為 true,否則為 falsetrue if the page is in asynchronous mode; otherwise, false;

備註

使用IsAsync屬性來判斷網頁是否處於非同步模式下執行。Use the IsAsync property to determine whether the Web page is running in asynchronous mode. 這項資訊是控制項或頁面上的程式碼需要修改其行為取決於是否非同步頁面時相當實用。This information is useful if controls or code on the page need to modify their behavior depending on whether the page is asynchronous. 如需有關非同步程式設計的詳細資訊,請參閱 < 非同步作業For more information about asynchronous programming, see Asynchronous Operations.

適用於