ControllerActionInvoker.InvokeAction Method
Invokes the specified action by using the specified controller context.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
abstract InvokeAction : controllerContext:ControllerContext * actionName:string -> bool override InvokeAction : controllerContext:ControllerContext * actionName:string -> bool
Parameters
- controllerContext
- Type: System.Web.Mvc.ControllerContext
The controller context.
- actionName
- Type: System.String
The name of the action to invoke.
Implements
IActionInvoker.InvokeAction(ControllerContext, String)| Exception | Condition |
|---|---|
| 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. |
| ThreadAbortException | The thread was aborted during invocation of the action. |
| Exception | An unspecified error occurred during invocation of the action. |
Show: