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)

'Declaration
Public Overrides Function FindAction ( _
	controllerContext As ControllerContext, _
	actionName As String _
) As ActionDescriptor
'Usage
Dim instance As ReflectedControllerDescriptor 
Dim controllerContext As ControllerContext 
Dim actionName As String 
Dim returnValue As ActionDescriptor 

returnValue = instance.FindAction(controllerContext, _
	actionName)

Parameters

controllerContext
Type: System.Web.Mvc.ControllerContext

The controller context.

actionName
Type: System.String

The name of the action.

Return Value

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

ExceptionCondition
ArgumentNullException

The controllerContext parameter is Nothing.

ArgumentException

The actionName parameter is Nothing or empty.

Show: