AsyncController Class

Definition

Provided for backward compatibility with ASP.NET MVC 3.

public abstract class AsyncController : System.Web.Mvc.Controller
type AsyncController = class
    inherit Controller
Public MustInherit Class AsyncController
Inherits Controller
Inheritance
AsyncController

Constructors

AsyncController()

Initializes a new instance of the AsyncController class.

Properties

ActionInvoker

Gets the action invoker for the controller.

(Inherited from Controller)
AsyncManager

Provides asynchronous operations.

(Inherited from Controller)
Binders

Gets or sets the binder.

(Inherited from Controller)
ControllerContext

Gets or sets the controller context.

(Inherited from ControllerBase)
DisableAsyncSupport

Gets whether to disable the asynchronous support for the controller.

(Inherited from Controller)
HttpContext

Gets HTTP-specific information about an individual HTTP request.

(Inherited from Controller)
ModelState

Gets the model state dictionary object that contains the state of the model and of model-binding validation.

(Inherited from Controller)
Profile

Gets the HTTP context profile.

(Inherited from Controller)
Request

Gets the HttpRequestBase object for the current HTTP request.

(Inherited from Controller)
Resolver

Represents a replaceable dependency resolver providing services. By default, it uses the System.Web.Mvc.DependencyResolver.CurrentCache.

(Inherited from Controller)
Response

Gets the HttpResponseBase object for the current HTTP response.

(Inherited from Controller)
RouteData

Gets the route data for the current request.

(Inherited from Controller)
Server

Gets the HttpServerUtilityBase object that provides methods that are used during Web request processing.

(Inherited from Controller)
Session

Gets the HttpSessionStateBase object for the current HTTP request.

(Inherited from Controller)
TempData

Gets or sets the dictionary for temporary data.

(Inherited from ControllerBase)
TempDataProvider

Gets the temporary-data provider object that is used to store data for the next request.

(Inherited from Controller)
Url

Gets the URL helper object that is used to generate URLs by using routing.

(Inherited from Controller)
User

Gets the user security information for the current HTTP request.

(Inherited from Controller)
ValidateRequest

Gets or sets a value that indicates whether request validation is enabled for this request.

(Inherited from ControllerBase)
ValueProvider

Gets or sets the value provider for the controller.

(Inherited from ControllerBase)
ViewBag

Gets the dynamic view data dictionary.

(Inherited from ControllerBase)
ViewData

Gets or sets the dictionary for view data.

(Inherited from ControllerBase)
ViewEngineCollection

Gets the view engine collection.

(Inherited from Controller)

Methods

BeginExecute(RequestContext, AsyncCallback, Object)

Begins execution of the specified request context

(Inherited from Controller)
BeginExecuteCore(AsyncCallback, Object)

Begins to invoke the action in the current controller context.

(Inherited from Controller)
Content(String)

Creates a content result object by using a string.

(Inherited from Controller)
Content(String, String)

Creates a content result object by using a string and the content type.

(Inherited from Controller)
Content(String, String, Encoding)

Creates a content result object by using a string, the content type, and content encoding.

(Inherited from Controller)
CreateActionInvoker()

Creates an action invoker.

(Inherited from Controller)
CreateTempDataProvider()

Creates a temporary data provider.

(Inherited from Controller)
Dispose()

Releases all resources that are used by the current instance of the Controller class.

(Inherited from Controller)
Dispose(Boolean)

Releases unmanaged resources and optionally releases managed resources.

(Inherited from Controller)
EndExecute(IAsyncResult)

Ends the invocation of the action in the current controller context.

(Inherited from Controller)
EndExecuteCore(IAsyncResult)

Ends the execute core.

(Inherited from Controller)
Execute(RequestContext)

Executes the specified request context.

(Inherited from ControllerBase)
ExecuteCore()

Invokes the action in the current controller context.

(Inherited from Controller)
File(Byte[], String)

Creates a FileContentResult object by using the file contents and file type.

(Inherited from Controller)
File(Byte[], String, String)

Creates a FileContentResult object by using the file contents, content type, and the destination file name.

(Inherited from Controller)
File(Stream, String)

Creates a FileStreamResult object by using the Stream object and content type.

(Inherited from Controller)
File(Stream, String, String)

Creates a FileStreamResult object using the Stream object, the content type, and the target file name.

(Inherited from Controller)
File(String, String)

Creates a FilePathResult object by using the file name and the content type.

(Inherited from Controller)
File(String, String, String)

Creates a FilePathResult object by using the file name, the content type, and the file download name.

(Inherited from Controller)
HandleUnknownAction(String)

Called when a request matches this controller, but no method with the specified action name is found in the controller.

(Inherited from Controller)
HttpNotFound()

Returns an instance of the HttpNotFoundResult class.

(Inherited from Controller)
HttpNotFound(String)

Returns an instance of the HttpNotFoundResult class.

(Inherited from Controller)
Initialize(RequestContext)

Initializes data that might not be available when the constructor is called.

(Inherited from Controller)
JavaScript(String)

Creates a JavaScriptResult object.

(Inherited from Controller)
Json(Object)

Creates a JsonResult object that serializes the specified object to JavaScript Object Notation (JSON).

(Inherited from Controller)
Json(Object, JsonRequestBehavior)

Creates a JsonResult object that serializes the specified object to JavaScript Object Notation (JSON) format using the specified JSON request behavior.

(Inherited from Controller)
Json(Object, String)

Creates a JsonResult object that serializes the specified object to JavaScript Object Notation (JSON) format.

(Inherited from Controller)
Json(Object, String, Encoding)

Creates a JsonResult object that serializes the specified object to JavaScript Object Notation (JSON) format.

(Inherited from Controller)
Json(Object, String, Encoding, JsonRequestBehavior)

Creates a JsonResult object that serializes the specified object to JavaScript Object Notation (JSON) format using the content type, content encoding, and the JSON request behavior.

(Inherited from Controller)
Json(Object, String, JsonRequestBehavior)

Creates a JsonResult object that serializes the specified object to JavaScript Object Notation (JSON) format using the specified content type and JSON request behavior.

(Inherited from Controller)
OnActionExecuted(ActionExecutedContext)

Called after the action method is invoked.

(Inherited from Controller)
OnActionExecuting(ActionExecutingContext)

Called before the action method is invoked.

(Inherited from Controller)
OnAuthentication(AuthenticationContext)

Called when authorization occurs.

(Inherited from Controller)
OnAuthenticationChallenge(AuthenticationChallengeContext)

Called when authorization challenge occurs.

(Inherited from Controller)
OnAuthorization(AuthorizationContext)

Called when authorization occurs.

(Inherited from Controller)
OnException(ExceptionContext)

Called when an unhandled exception occurs in the action.

(Inherited from Controller)
OnResultExecuted(ResultExecutedContext)

Called after the action result that is returned by an action method is executed.

(Inherited from Controller)
OnResultExecuting(ResultExecutingContext)

Called before the action result that is returned by an action method is executed.

(Inherited from Controller)
PartialView()

Creates a PartialViewResult object that renders a partial view.

(Inherited from Controller)
PartialView(Object)

Creates a PartialViewResult object that renders a partial view, by using the specified model.

(Inherited from Controller)
PartialView(String)

Creates a PartialViewResult object that renders a partial view, by using the specified view name.

(Inherited from Controller)
PartialView(String, Object)

Creates a PartialViewResult object that renders a partial view, by using the specified view name and model.

(Inherited from Controller)
Redirect(String)

Creates a RedirectResult object that redirects to the specified URL.

(Inherited from Controller)
RedirectPermanent(String)

Returns an instance of the RedirectResult class with the Permanent property set to true.

(Inherited from Controller)
RedirectToAction(String)

Redirects to the specified action using the action name.

(Inherited from Controller)
RedirectToAction(String, Object)

Redirects to the specified action using the action name and route values.

(Inherited from Controller)
RedirectToAction(String, RouteValueDictionary)

Redirects to the specified action using the action name and route dictionary.

(Inherited from Controller)
RedirectToAction(String, String)

Redirects to the specified action using the action name and controller name.

(Inherited from Controller)
RedirectToAction(String, String, Object)

Redirects to the specified action using the action name, controller name, and route dictionary.

(Inherited from Controller)
RedirectToAction(String, String, RouteValueDictionary)

Redirects to the specified action using the action name, controller name, and route values.

(Inherited from Controller)
RedirectToActionPermanent(String)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified action name.

(Inherited from Controller)
RedirectToActionPermanent(String, Object)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified action name, and route values.

(Inherited from Controller)
RedirectToActionPermanent(String, RouteValueDictionary)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified action name, and route values.

(Inherited from Controller)
RedirectToActionPermanent(String, String)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified action name, and controller name.

(Inherited from Controller)
RedirectToActionPermanent(String, String, Object)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified action name, controller name, and route values.

(Inherited from Controller)
RedirectToActionPermanent(String, String, RouteValueDictionary)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified action name, controller name, and route values.

(Inherited from Controller)
RedirectToRoute(Object)

Redirects to the specified route using the specified route values.

(Inherited from Controller)
RedirectToRoute(RouteValueDictionary)

Redirects to the specified route using the route dictionary.

(Inherited from Controller)
RedirectToRoute(String)

Redirects to the specified route using the route name.

(Inherited from Controller)
RedirectToRoute(String, Object)

Redirects to the specified route using the route name and route values.

(Inherited from Controller)
RedirectToRoute(String, RouteValueDictionary)

Redirects to the specified route using the route name and route dictionary.

(Inherited from Controller)
RedirectToRoutePermanent(Object)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route values.

(Inherited from Controller)
RedirectToRoutePermanent(RouteValueDictionary)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route values.

(Inherited from Controller)
RedirectToRoutePermanent(String)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name.

(Inherited from Controller)
RedirectToRoutePermanent(String, Object)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name and route values.

(Inherited from Controller)
RedirectToRoutePermanent(String, RouteValueDictionary)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name and route values.

(Inherited from Controller)
TryUpdateModel<TModel>(TModel)

Updates the specified model instance using values from the controller's current value provider.

(Inherited from Controller)
TryUpdateModel<TModel>(TModel, IValueProvider)

Updates the specified model instance using values from the value provider.

(Inherited from Controller)
TryUpdateModel<TModel>(TModel, String)

Updates the specified model instance using values from the controller's current value provider and a prefix.

(Inherited from Controller)
TryUpdateModel<TModel>(TModel, String, IValueProvider)

Updates the specified model instance using values from the value provider and a list of properties to include.

(Inherited from Controller)
TryUpdateModel<TModel>(TModel, String, String[])

Updates the specified model instance using values from the controller's current value provider, a prefix, and included properties.

(Inherited from Controller)
TryUpdateModel<TModel>(TModel, String, String[], IValueProvider)

Updates the specified model instance using values from the value provider, a prefix, and included properties.

(Inherited from Controller)
TryUpdateModel<TModel>(TModel, String, String[], String[])

Updates the specified model instance using values from the controller's current value provider, a prefix, a list of properties to exclude, and a list of properties to include.

(Inherited from Controller)
TryUpdateModel<TModel>(TModel, String, String[], String[], IValueProvider)

Updates the specified model instance using values from the value provider, a prefix, a list of properties to exclude , and a list of properties to include.

(Inherited from Controller)
TryUpdateModel<TModel>(TModel, String[])

Updates the specified model instance using values from the controller's current value provider and included properties.

(Inherited from Controller)
TryUpdateModel<TModel>(TModel, String[], IValueProvider)

Updates the specified model instance using values from the value provider and a list of properties to include.

(Inherited from Controller)
TryValidateModel(Object)

Validates the specified model instance.

(Inherited from Controller)
TryValidateModel(Object, String)

Validates the specified model instance using an HTML prefix.

(Inherited from Controller)
UpdateModel<TModel>(TModel)

Updates the specified model instance using values from the controller's current value provider.

(Inherited from Controller)
UpdateModel<TModel>(TModel, IValueProvider)

Updates the specified model instance using values from the value provider.

(Inherited from Controller)
UpdateModel<TModel>(TModel, String)

Updates the specified model instance using values from the controller's current value provider and a prefix.

(Inherited from Controller)
UpdateModel<TModel>(TModel, String, IValueProvider)

Updates the specified model instance using values from the value provider, a prefix, and a list of properties to include.

(Inherited from Controller)
UpdateModel<TModel>(TModel, String, String[])

Updates the specified model instance using values from the controller's current value provider, a prefix, and included properties.

(Inherited from Controller)
UpdateModel<TModel>(TModel, String, String[], IValueProvider)

Updates the specified model instance using values from the value provider, a prefix, and a list of properties to include.

(Inherited from Controller)
UpdateModel<TModel>(TModel, String, String[], String[])

Updates the specified model instance using values from the controller's current value provider, a prefix, a list of properties to exclude, and a list of properties to include.

(Inherited from Controller)
UpdateModel<TModel>(TModel, String, String[], String[], IValueProvider)

Updates the specified model instance using values from the value provider, a prefix, a list of properties to exclude, and a list of properties to include.

(Inherited from Controller)
UpdateModel<TModel>(TModel, String[])

Updates the specified model instance using values from the controller object's current value provider.

(Inherited from Controller)
UpdateModel<TModel>(TModel, String[], IValueProvider)

Updates the specified model instance using values from the value provider, a prefix, and a list of properties to include.

(Inherited from Controller)
ValidateModel(Object)

Validates the specified model instance.

(Inherited from Controller)
ValidateModel(Object, String)

Validates the specified model instance using an HTML prefix.

(Inherited from Controller)
View()

Creates a ViewResult object that renders a view to the response.

(Inherited from Controller)
View(IView)

Creates a ViewResult object that renders the specified IView object.

(Inherited from Controller)
View(IView, Object)

Creates a ViewResult object that renders the specified IView object.

(Inherited from Controller)
View(Object)

Creates a ViewResult object by using the model that renders a view to the response.

(Inherited from Controller)
View(String)

Creates a ViewResult object by using the view name that renders a view.

(Inherited from Controller)
View(String, Object)

Creates a ViewResult object that renders the specified IView object.

(Inherited from Controller)
View(String, String)

Creates a ViewResult object using the view name and master-page name that renders a view to the response.

(Inherited from Controller)
View(String, String, Object)

Creates a ViewResult object using the view name, master-page name, and model that renders a view.

(Inherited from Controller)

Explicit Interface Implementations

IActionFilter.OnActionExecuted(ActionExecutedContext)

This method calls the OnActionExecuted method.

(Inherited from Controller)
IActionFilter.OnActionExecuting(ActionExecutingContext)

This method calls the OnActionExecuting method.

(Inherited from Controller)
IAsyncController.BeginExecute(RequestContext, AsyncCallback, Object)

This method calls the BeginExecute method.

(Inherited from Controller)
IAsyncController.EndExecute(IAsyncResult)

This method calls the EndExecute method.

(Inherited from Controller)
IAuthenticationFilter.OnAuthentication(AuthenticationContext)

This method calls the OnAuthentication method.

(Inherited from Controller)
IAuthenticationFilter.OnAuthenticationChallenge(AuthenticationChallengeContext)

This method calls the OnAuthenticationChallenge method.

(Inherited from Controller)
IAuthorizationFilter.OnAuthorization(AuthorizationContext)

This method calls the OnAuthorization method.

(Inherited from Controller)
IController.Execute(RequestContext)

Executes the specified request context.

(Inherited from ControllerBase)
IExceptionFilter.OnException(ExceptionContext)

This method calls the OnException method.

(Inherited from Controller)
IResultFilter.OnResultExecuted(ResultExecutedContext)

This method calls the OnResultExecuted method.

(Inherited from Controller)
IResultFilter.OnResultExecuting(ResultExecutingContext)

This method calls the OnResultExecuting method.

(Inherited from Controller)

Applies to