Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HttpContextBase.AllowAsyncDuringSyncStages Property

.NET Framework 4.6 and 4.5

When implemented in a derived class, gets or sets a value that indicates whether asynchronous operations are allowed during parts of ASP.NET request processing when they are not expected.

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

abstract AllowAsyncDuringSyncStages : bool with get, set 
override AllowAsyncDuringSyncStages : bool with get, set

Property Value

Type: System.Boolean
false if ASP.NET will throw an exception when the asynchronous API is used at a time when it is not expected; otherwise, true. The default value is false.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft