Share via


HttpContextWrapper.AllowAsyncDuringSyncStages 屬性

定義

取得或設定值,表示在 ASP.NET 要求各部分處理期間,是否允許未預期的非同步作業。

public:
 virtual property bool AllowAsyncDuringSyncStages { bool get(); void set(bool value); };
public override bool AllowAsyncDuringSyncStages { get; set; }
member this.AllowAsyncDuringSyncStages : bool with get, set
Public Overrides Property AllowAsyncDuringSyncStages As Boolean

屬性值

Boolean

如果 ASP.NET 在未預期的情況下使用了非同步 API 而擲回例外狀況,則為 false;否則為 true。 預設值是 false

備註

如需詳細資訊,請參閱HttpContext.AllowAsyncDuringSyncStages

適用於