ReflectedControllerDescriptor.FindAction(ControllerContext, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Finds the specified action for the specified controller context.
public override System.Web.Mvc.ActionDescriptor FindAction (System.Web.Mvc.ControllerContext controllerContext, string actionName);
override this.FindAction : System.Web.Mvc.ControllerContext * string -> System.Web.Mvc.ActionDescriptor
Public Overrides Function FindAction (controllerContext As ControllerContext, actionName As String) As ActionDescriptor
Parameters
- controllerContext
- ControllerContext
The controller context.
- actionName
- String
The name of the action.
Returns
The information about the action.
Exceptions
The controllerContext
parameter is null.
The actionName
parameter is null or empty.