Export (0) Print
Expand All

Controller.DisableAsyncSupport Property

Gets whether to disable the asynchronous support for the controller.

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

'Declaration
Protected Overridable ReadOnly Property DisableAsyncSupport As Boolean 
	Get
'Usage
Dim value As Boolean 

value = Me.DisableAsyncSupport

Property Value

Type: System.Boolean
true to disable the asynchronous support for the controller; otherwise, false.

This flag is for backwards compatibility. ASP.NET MVC 4. allows a controller to support asynchronous patterns. This means ExecuteCore doesn't get called on derived classes. Derived classes can override this flag and set to true if they still need ExecuteCore to be called.

Show:
© 2014 Microsoft