Table of Contents

Class ResultExecutedContext

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Provides the context for the OnResultExecuted(ResultExecutedContext) method of the ActionFilterAttribute class.

public class ResultExecutedContext : ControllerContext
Inheritance
ResultExecutedContext
Inherited Members

Constructors

ResultExecutedContext()

Initializes a new instance of the ResultExecutedContext class.

public ResultExecutedContext()

ResultExecutedContext(ControllerContext, ActionResult, bool, Exception)

Initializes a new instance of the ResultExecutedContext class.

public ResultExecutedContext(ControllerContext controllerContext, ActionResult result, bool canceled, Exception exception)

Parameters

controllerContext ControllerContext

The controller context.

result ActionResult

The result object.

canceled bool

true to cancel execution; otherwise, false.

exception Exception

The exception object.

Exceptions

ArgumentNullException

The result parameter is null.

Properties

Canceled

Gets or sets a value that indicates whether this ResultExecutedContext instance is canceled.

public virtual bool Canceled { get; set; }

Property Value

bool

true if the instance is canceled; otherwise, false.

Exception

Gets or sets the exception object.

public virtual Exception Exception { get; set; }

Property Value

Exception

The exception object.

ExceptionHandled

Gets or sets a value that indicates whether the exception has been handled.

public bool ExceptionHandled { get; set; }

Property Value

bool

true if the exception has been handled; otherwise, false.

Result

Gets or sets the action result.

public virtual ActionResult Result { get; set; }

Property Value

ActionResult

The action result.