Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ControllerBase Class

 

Represents the base class for all MVC controllers.

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

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

public abstract class ControllerBase : IController

NameDescription
System_CAPS_protmethodControllerBase()

Initializes a new instance of the ControllerBase class.

NameDescription
System_CAPS_pubpropertyControllerContext

Gets or sets the controller context.

System_CAPS_pubpropertyTempData

Gets or sets the dictionary for temporary data.

System_CAPS_pubpropertyValidateRequest

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

System_CAPS_pubpropertyValueProvider

Gets or sets the value provider for the controller.

System_CAPS_pubpropertyViewBag

Gets the dynamic view data dictionary.

System_CAPS_pubpropertyViewData

Gets or sets the dictionary for view data.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodExecute(RequestContext)

Executes the specified request context.

System_CAPS_protmethodExecuteCore()

Executes the request.

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodInitialize(RequestContext)

Initializes the specified request context.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIController.Execute(RequestContext)

Executes the specified request context.

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

Return to top
Show:
© 2018 Microsoft