ReflectedControllerDescriptor.FindAction Method (ControllerContext, String)
Finds the specified action for the specified controller context.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
public override ActionDescriptor FindAction( ControllerContext controllerContext, string actionName )
Parameters
- controllerContext
-
Type:
System.Web.Mvc.ControllerContext
The controller context.
- actionName
-
Type:
System.String
The name of the action.
| Exception | Condition |
|---|---|
| ArgumentNullException | The controllerContext parameter is null. |
| ArgumentException | The actionName parameter is null or empty. |
Show: