Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Invokes the specified action by using the specified controller context.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Overridable Function InvokeAction ( _
controllerContext As ControllerContext, _
actionName As String _
) As Boolean
public virtual bool InvokeAction(
ControllerContext controllerContext,
string actionName
)
public:
virtual bool InvokeAction(
ControllerContext^ controllerContext,
String^ actionName
)
Parameters
- controllerContext
Type: System.Web.Mvc.ControllerContext
The controller context.
- actionName
Type: System.String
The name of the action to invoke.
Return Value
Type: System.Boolean
The result of executing the action.
Implements
IActionInvoker.InvokeAction(ControllerContext, String)
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. |
| ThreadAbortException | The thread was aborted during invocation of the action. |
| Exception | An unspecified error occurred during invocation of the action. |