DefaultControllerFactory.GetControllerType Method (RequestContext, String)

 

Retrieves the controller type for the specified name and request context.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

protected internal virtual Type GetControllerType(
    RequestContext requestContext,
    string controllerName
)
public protected:
virtual Type^ GetControllerType(
    RequestContext^ requestContext,
    String^ controllerName
)
abstract GetControllerType : 
        requestContext:RequestContext *
        controllerName:string -> Type
override GetControllerType : 
        requestContext:RequestContext *
        controllerName:string -> Type
Protected Friend Overridable Function GetControllerType (
    requestContext As RequestContext,
    controllerName As String
) As Type

Parameters

Return Value

Type: System.Type

The controller type.

See Also

DefaultControllerFactory Class
System.Web.Mvc Namespace

Return to top