ControllerBase Class (System.Web.Mvc)

Switch View :
ScriptFree
.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
Public MustInherit Class ControllerBase _
	Implements IController
C#
public abstract class ControllerBase : IController
Visual C++
public ref class ControllerBase abstract : 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 ViewData Gets or sets the dictionary for view data.
Top
Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Execute Executes the specified request context.
Protected method ExecuteCore Executes the request.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method Initialize Initializes the specified request context.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Explicit Interface Implementations

  Name Description
Explicit interface implemetation Private 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

Other Resources