.NET Framework Class Library
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
Visual Basic (Declaration)
Public MustInherit Class ControllerBase _ Implements IController
Visual Basic (Usage)
Dim instance As ControllerBase
C#
public abstract class ControllerBase : IController
Visual C++
public ref class ControllerBase abstract : IController
JScript
public abstract class ControllerBase implements IController
The ControllerBase type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
|
ControllerBase | Initializes a new instance of the ControllerBase class. |
Properties
| Name | Description | |
|---|---|---|
|
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
| Name | Description | |
|---|---|---|
|
Equals | (Inherited from Object.) |
|
Execute | Executes the specified request context. |
|
ExecuteCore | Executes the request. |
|
Finalize | (Inherited from Object.) |
|
GetHashCode | (Inherited from Object.) |
|
GetType | (Inherited from Object.) |
|
Initialize | Initializes the specified request context. |
|
MemberwiseClone | (Inherited from Object.) |
|
ToString | (Inherited from Object.) |
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
|
IController.Execute | Executes the specified request context. |
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