ControllerDescriptor.FindAction Method (ControllerContext, String)
Finds an action method by using the specified name and controller context.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
public abstract ActionDescriptor FindAction(
ControllerContext controllerContext,
string actionName
)
public:
virtual ActionDescriptor^ FindAction(
ControllerContext^ controllerContext,
String^ actionName
) abstract
abstract FindAction :
controllerContext:ControllerContext *
actionName:string -> ActionDescriptor
Public MustOverride Function FindAction (
controllerContext As ControllerContext,
actionName As String
) As ActionDescriptor
Parameters
controllerContext
Type: System.Web.Mvc.ControllerContextThe controller context.
actionName
Type: System.StringThe name of the action.
Return Value
Type: System.Web.Mvc.ActionDescriptor
The information about the action method.
See Also
ControllerDescriptor Class
System.Web.Mvc Namespace
Return to top