Delen via


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
ControllerContext
Derived

Constructors

ControllerContext()

Initializes a new instance of the ControllerContext class.

ControllerContext(ControllerContext)

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

ControllerContext(HttpContextBase, RouteData, ControllerBase)

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

ControllerContext(RequestContext, ControllerBase)

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

Properties

Controller

Gets or sets the controller.

DisplayMode

Gets the display mode.

HttpContext

Gets or sets the HTTP context.

IsChildAction

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

ParentActionViewContext

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

RequestContext

Gets or sets the request context.

RouteData

Gets or sets the URL route data.

Applies to