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)
public: virtual ActionDescriptor^ FindAction( ControllerContext^ controllerContext, String^ actionName ) override
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 nullptr. |
| ArgumentException | The actionName parameter is nullptr or empty. |
Show: