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

DefaultControllerFactory.GetControllerType Method

Retrieves the controller type for the specified name and request context.

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

protected internal virtual Type GetControllerType(
	RequestContext requestContext,
	string controllerName


Type: System.Web.Routing.RequestContext
The context of the HTTP request, which includes the HTTP context and route data.
Type: System.String
The name of the controller.

Return Value

Type: System.Type
The controller type.
© 2015 Microsoft