ControllerBase Class

Definition

Represents the base class for all MVC controllers.

public abstract class ControllerBase : System.Web.Mvc.IController
type ControllerBase = class
    interface IController
Public MustInherit Class ControllerBase
Implements IController
Inheritance
ControllerBase
Derived
Implements

Constructors

ControllerBase()

Initializes a new instance of the ControllerBase class.

Properties

ControllerContext

Gets or sets the controller context.

TempData

Gets or sets the dictionary for temporary data.

ValidateRequest

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

ValueProvider

Gets or sets the value provider for the controller.

ViewBag

Gets the dynamic view data dictionary.

ViewData

Gets or sets the dictionary for view data.

Methods

Execute(RequestContext)

Executes the specified request context.

ExecuteCore()

Executes the request.

Initialize(RequestContext)

Initializes the specified request context.

Explicit Interface Implementations

IController.Execute(RequestContext)

Executes the specified request context.

Applies to