ActionExecutedContext ActionExecutedContext Class

A context for action filters, specifically OnActionExecuted(ActionExecutedContext) calls.

Syntax

Declaration

public class ActionExecutedContext : FilterContextPublic Class ActionExecutedContext
    Inherits FilterContext

Inheritance Hierarchy

Inherited Members

Filters,
Filters,
ActionDescriptor,
ActionDescriptor,
HttpContext,
HttpContext,
ModelState,
ModelState,
RouteData,
RouteData,
ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

Instantiates a new ActionExecutingContext instance.

Properties summary

Gets or sets an indication that an action filter short-circuited the action and the action filter pipeline.
Gets the controller instance containing the action.
Gets or sets the System.Exception caught while executing the action or action filters, if any.
Gets or sets the System.Runtime.ExceptionServices.ExceptionDispatchInfo for the Exception, if an System.Exception was caught and this information captured.
Gets or sets an indication that the Exception has been handled.
Gets or sets the IActionResult.

Constructors

  • ActionExecutedContext(ActionContext, IList<IFilterMetadata>, Object)
    ActionExecutedContext(ActionContext, IList(Of IFilterMetadata), Object)
    Instantiates a new ActionExecutingContext instance.
    public ActionExecutedContext(ActionContext actionContext, IList<IFilterMetadata> filters, object controller)Public Sub New(actionContext As ActionContext, filters As IList(Of IFilterMetadata), controller As Object)

    Parameters

Properties

  • Canceled
    Canceled
    Gets or sets an indication that an action filter short-circuited the action and the action filter pipeline.
    public virtual bool Canceled { get; set; }Public Overridable Property Canceled As Boolean

    Property Value

    • System.Boolean
      System.Boolean
  • Controller
    Controller
    Gets the controller instance containing the action.
    public virtual object Controller { get; }Public Overridable ReadOnly Property Controller As Object

    Property Value

    • System.Object
      System.Object
  • Exception
    Exception
    Gets or sets the System.Exception caught while executing the action or action filters, if any.
    public virtual Exception Exception { get; set; }Public Overridable Property Exception As Exception

    Property Value

    • System.Exception
      System.Exception
  • ExceptionDispatchInfo
    ExceptionDispatchInfo
    Gets or sets the System.Runtime.ExceptionServices.ExceptionDispatchInfo for the Exception, if an System.Exception was caught and this information captured.
    public virtual ExceptionDispatchInfo ExceptionDispatchInfo { get; set; }Public Overridable Property ExceptionDispatchInfo As ExceptionDispatchInfo

    Property Value

    • System.Runtime.ExceptionServices.ExceptionDispatchInfo
      System.Runtime.ExceptionServices.ExceptionDispatchInfo
  • ExceptionHandled
    ExceptionHandled
    Gets or sets an indication that the Exception has been handled.
    public virtual bool ExceptionHandled { get; set; }Public Overridable Property ExceptionHandled As Boolean

    Property Value

    • System.Boolean
      System.Boolean
  • Result
    Result
    Gets or sets the IActionResult.
    public virtual IActionResult Result { get; set; }Public Overridable Property Result As IActionResult

    Property Value

Details

Assembly

Microsoft.AspNetCore.Mvc.Abstractions.dll