Partager via


ControllerBase.Execute Method

Executes the specified request context.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Protected Overridable Sub Execute ( _
    requestContext As RequestContext _
)
protected virtual void Execute(
    RequestContext requestContext
)
protected:
virtual void Execute(
    RequestContext^ requestContext
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The requestContext parameter is null reference (Nothing in Visual Basic).

Remarks

This method is an implementation of Execute. You typically do not have to override this method. Override Initialize or ExecuteCore instead.

See Also

Reference

ControllerBase Class

System.Web.Mvc Namespace