ControllerActionInvoker.InvokeAction Method (ControllerContext, String)
Invokes the specified action by using the specified controller context.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Public Overridable Function InvokeAction ( controllerContext As ControllerContext, actionName As String ) As Boolean
Parameters
- controllerContext
-
Type:
System.Web.Mvc.ControllerContext
The controller context.
- actionName
-
Type:
System.String
The name of the action to invoke.
| Exception | Condition |
|---|---|
| ArgumentNullException | The controllerContext parameter is null. |
| ArgumentException | The actionName parameter is null or empty. |
| ThreadAbortException | The thread was aborted during invocation of the action. |
| Exception | An unspecified error occurred during invocation of the action. |
Show: