ControllerActionInvoker.InvokeAction(ControllerContext, String) Method

Definition

Invokes the specified action by using the specified controller context.

public virtual bool InvokeAction (System.Web.Mvc.ControllerContext controllerContext, string actionName);
abstract member InvokeAction : System.Web.Mvc.ControllerContext * string -> bool
override this.InvokeAction : System.Web.Mvc.ControllerContext * string -> bool
Public Overridable Function InvokeAction (controllerContext As ControllerContext, actionName As String) As Boolean

Parameters

controllerContext
ControllerContext

The controller context.

actionName
String

The name of the action to invoke.

Returns

The result of executing the action.

Implements

Exceptions

The controllerContext parameter is null.

The actionName parameter is null or empty.

The thread was aborted during invocation of the action.

An unspecified error occurred during invocation of the action.

Applies to