Export (0) Print
Expand All

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 override function FindAction(
	controllerContext : ControllerContext, 
	actionName : String
) : ActionDescriptor

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 a null reference (Nothing in Visual Basic).

ArgumentException

The actionName parameter is a null reference (Nothing in Visual Basic) or empty.

Show:
© 2014 Microsoft