Class ResultExecutedContext
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
ControllerContextThe controller context.
result
ActionResultThe result object.
canceled
booltrue to cancel execution; otherwise, false.
exception
ExceptionThe 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.