Share via


ReflectedControllerDescriptor.FindAction Method

Finds the specified action for the specified controller context.

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

Syntax

'Declaration
Public Overrides Function FindAction ( _
    controllerContext As ControllerContext, _
    actionName As String _
) As ActionDescriptor
public override ActionDescriptor FindAction(
    ControllerContext controllerContext,
    string actionName
)
public:
virtual ActionDescriptor^ FindAction(
    ControllerContext^ controllerContext, 
    String^ actionName
) override

Parameters

Return Value

Type: System.Web.Mvc.ActionDescriptor
The information about the action.

Exceptions

Exception Condition
ArgumentNullException

The controllerContext parameter is null reference (Nothing in Visual Basic).

ArgumentException

The actionName parameter is null reference (Nothing in Visual Basic) or empty.

See Also

Reference

ReflectedControllerDescriptor Class

System.Web.Mvc Namespace