Class ResultExecutingContext
Provides the context for the OnResultExecuting(ResultExecutingContext) method of the ActionFilterAttribute class.
public class ResultExecutingContext : ControllerContext
- Inheritance
-
ResultExecutingContext
- Inherited Members
Constructors
ResultExecutingContext()
Initializes a new instance of the ResultExecutingContext class.
public ResultExecutingContext()
ResultExecutingContext(ControllerContext, ActionResult)
Initializes a new instance of the ResultExecutingContext class by using the specified controller context and action result.
public ResultExecutingContext(ControllerContext controllerContext, ActionResult result)
Parameters
controllerContext
ControllerContextThe controller context.
result
ActionResultThe action result.
Exceptions
- ArgumentNullException
The
result
parameter is null.
Properties
Cancel
Gets or sets a value that indicates whether this ResultExecutingContext value is "cancel".
public bool Cancel { get; set; }
Property Value
- bool
true if the value is "cancel"; otherwise, false.
Result
Gets or sets the action result.
public virtual ActionResult Result { get; set; }
Property Value
- ActionResult
The action result.