ControllerBase Class

Represents the base class for all MVC controllers.

Inheritance Hierarchy

System.Object
  System.Web.Mvc.ControllerBase
    System.Web.Mvc.Controller

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

Syntax

'Declaration
Public MustInherit Class ControllerBase _
    Implements IController
'Usage
Dim instance As ControllerBase
public abstract class ControllerBase : IController
public ref class ControllerBase abstract : IController
[<AbstractClassAttribute>]
type ControllerBase =  
    class 
        interface IController 
    end
public abstract class ControllerBase implements IController

The ControllerBase type exposes the following members.

Constructors

  Name Description
Protected method ControllerBase Initializes a new instance of the ControllerBase class.

Top

Properties

  Name Description
Public property ControllerContext Gets or sets the controller context.
Public property TempData Gets or sets the dictionary for temporary data.
Public property ValidateRequest Gets or sets a value that indicates whether request validation is enabled for this request.
Public property ValueProvider Gets or sets the value provider for the controller.
Public property ViewBag Gets the dynamic view data dictionary.
Public property ViewData Gets or sets the dictionary for view data.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Execute Executes the specified request context.
Protected method ExecuteCore Executes the request.
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method Initialize Initializes the specified request context.
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IController.Execute Executes the specified request context.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Mvc Namespace