DefaultControllerFactory.GetControllerType(RequestContext, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the controller type for the specified name and request context.
protected internal virtual Type GetControllerType (System.Web.Routing.RequestContext requestContext, string controllerName);
abstract member GetControllerType : System.Web.Routing.RequestContext * string -> Type
override this.GetControllerType : System.Web.Routing.RequestContext * string -> Type
Protected Friend Overridable Function GetControllerType (requestContext As RequestContext, controllerName As String) As Type
Parameters
- requestContext
- RequestContext
The context of the HTTP request, which includes the HTTP context and route data.
- controllerName
- String
The name of the controller.
Returns
The controller type.