Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ControllerContext Class

 

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

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


public class ControllerContext

NameDescription
System_CAPS_pubmethodControllerContext()

Initializes a new instance of the ControllerContext class.

System_CAPS_protmethodControllerContext(ControllerContext)

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

System_CAPS_pubmethodControllerContext(HttpContextBase, RouteData, ControllerBase)

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

System_CAPS_pubmethodControllerContext(RequestContext, ControllerBase)

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

NameDescription
System_CAPS_pubpropertyController

Gets or sets the controller.

System_CAPS_pubpropertyDisplayMode

Gets the display mode.

System_CAPS_pubpropertyHttpContext

Gets or sets the HTTP context.

System_CAPS_pubpropertyIsChildAction

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

System_CAPS_pubpropertyParentActionViewContext

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

System_CAPS_pubpropertyRequestContext

Gets or sets the request context.

System_CAPS_pubpropertyRouteData

Gets or sets the URL route data.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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:
© 2015 Microsoft