Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
public abstract class ControllerBase : IController
public ref class ControllerBase abstract : IController
The ControllerBase type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
ControllerBase | Initializes a new instance of the ControllerBase class. |
Top
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. |
![]() |
ViewData | Gets or sets the dictionary for view data. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
Execute | Executes the specified request context. |
![]() |
ExecuteCore | Executes the request. |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
Initialize | Initializes the specified request context. |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() |
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.