DisableAsyncSupport Property

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)

protected virtual bool DisableAsyncSupport { get; }

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.

Return to top
Show:
© 2016 Microsoft