DefaultControllerFactory.GetControllerType(RequestContext, String) 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

Parameters

requestContext
RequestContext RequestContext

The context of the HTTP request, which includes the HTTP context and route data.

controllerName
String String

The name of the controller.

Returns

The controller type.

Applies to