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)

Syntax

protected virtual bool DisableAsyncSupport { get; }
protected:
property bool DisableAsyncSupport {
    virtual bool get();
}
abstract DisableAsyncSupport : bool with get
override DisableAsyncSupport : bool with get
Protected Overridable ReadOnly Property DisableAsyncSupport As Boolean

Property Value

Type: System.Boolean

true to disable the asynchronous support for the controller; otherwise, false.

Remarks

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.

See Also

Controller Class
System.Web.Mvc Namespace

Return to top