DefaultControllerFactory.GetControllerType(RequestContext, String) Method

Definition

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.

Applies to