ControllerContext ControllerContext ControllerContext Class

Definition

Encapsulates information about an HTTP request that matches specified RouteBase and ControllerBase instances.

public class ControllerContext
type ControllerContext = class
Public Class ControllerContext
Inheritance
ControllerContextControllerContextControllerContext
Derived

Constructors

ControllerContext() ControllerContext() ControllerContext()

Initializes a new instance of the ControllerContext class.

ControllerContext(ControllerContext) ControllerContext(ControllerContext) ControllerContext(ControllerContext)

Initializes a new instance of the ControllerContext class by using the specified controller context.

ControllerContext(RequestContext, ControllerBase) ControllerContext(RequestContext, ControllerBase) ControllerContext(RequestContext, ControllerBase)

Initializes a new instance of the ControllerContext class by using the specified request context and controller.

ControllerContext(HttpContextBase, RouteData, ControllerBase) ControllerContext(HttpContextBase, RouteData, ControllerBase) ControllerContext(HttpContextBase, RouteData, ControllerBase)

Initializes a new instance of the ControllerContext class by using the specified HTTP context, URL route data, and controller.

Properties

Controller Controller Controller

Gets or sets the controller.

DisplayMode DisplayMode DisplayMode

Gets the display mode.

HttpContext HttpContext HttpContext

Gets or sets the HTTP context.

IsChildAction IsChildAction IsChildAction

Gets a value that indicates whether the associated action method is a child action.

ParentActionViewContext ParentActionViewContext ParentActionViewContext

Gets an object that contains the view context information for the parent action method.

RequestContext RequestContext RequestContext

Gets or sets the request context.

RouteData RouteData RouteData

Gets or sets the URL route data.

Applies to