Delen via


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)

Syntax

'Declaration
Protected Friend Overridable Function GetControllerType ( _
    requestContext As RequestContext, _
    controllerName As String _
) As Type
protected internal virtual Type GetControllerType(
    RequestContext requestContext,
    string controllerName
)
protected public:
virtual Type^ GetControllerType(
    RequestContext^ requestContext, 
    String^ controllerName
)

Parameters

Return Value

Type: System.Type
The controller type.

See Also

Reference

DefaultControllerFactory Class

System.Web.Mvc Namespace