Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Finds the specified action for the specified controller context.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Overrides Function FindAction ( _
controllerContext As ControllerContext, _
actionName As String _
) As ActionDescriptor
public override ActionDescriptor FindAction(
ControllerContext controllerContext,
string actionName
)
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.
Return Value
Type: System.Web.Mvc.ActionDescriptor
The information about the action.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The controllerContext parameter is null reference (Nothing in Visual Basic). |
| ArgumentException | The actionName parameter is null reference (Nothing in Visual Basic) or empty. |