Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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
)

Parameters

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

Return Value

Type: System.Type
The controller type.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.