ControllerBase Class

 

Represents the base class for all MVC controllers.

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

Inheritance Hierarchy

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

Syntax

public abstract class ControllerBase : IController
public ref class ControllerBase abstract : IController
[<AbstractClass>]
type ControllerBase = 
    class
        interface IController
    end
Public MustInherit Class ControllerBase
    Implements IController

Constructors

Name Description
System_CAPS_protmethod ControllerBase()

Initializes a new instance of the ControllerBase class.

Properties

Name Description
System_CAPS_pubproperty ControllerContext

Gets or sets the controller context.

System_CAPS_pubproperty TempData

Gets or sets the dictionary for temporary data.

System_CAPS_pubproperty ValidateRequest

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

System_CAPS_pubproperty ValueProvider

Gets or sets the value provider for the controller.

System_CAPS_pubproperty ViewBag

Gets the dynamic view data dictionary.

System_CAPS_pubproperty ViewData

Gets or sets the dictionary for view data.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Execute(RequestContext)

Executes the specified request context.

System_CAPS_protmethod ExecuteCore()

Executes the request.

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod Initialize(RequestContext)

Initializes the specified request context.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod IController.Execute(RequestContext)

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

System.Web.Mvc Namespace

Return to top