HttpContextBase::AllowAsyncDuringSyncStages Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

public:
property bool AllowAsyncDuringSyncStages {
	virtual bool get();
	virtual void set(bool value);
}

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
Available since 4.5
Return to top
Show: