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)

abstract GetControllerType : 
        requestContext:RequestContext * 
        controllerName:string -> Type  
override GetControllerType : 
        requestContext:RequestContext * 
        controllerName:string -> Type

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.
Show:
© 2015 Microsoft