ResourceExecutedContext Class¶
Constructors¶
-
ResourceExecutedContext
(Microsoft.AspNet.Mvc.ActionContext, System.Collections.Generic.IList<Microsoft.AspNet.Mvc.IFilter>)¶ Creates a new [Microsoft.AspNet.Mvc.ResourceExecutedContext](Microsoft.AspNet.Mvc.ResourceExecutedContext.yml).
Arguments: - actionContext (Microsoft.AspNet.Mvc.ActionContext) – The [Microsoft.AspNet.Mvc.ActionContext](Microsoft.AspNet.Mvc.ActionContext.yml).
- filters (System.Collections.Generic.IList{Microsoft.AspNet.Mvc.IFilter}) – The list of [Microsoft.AspNet.Mvc.IFilter](Microsoft.AspNet.Mvc.IFilter.yml) instances.
public ResourceExecutedContext(ActionContext actionContext, IList<IFilter> filters)
-
Properties¶
-
Canceled
()¶ Gets or sets a value which indicates whether or not execution was canceled by a resource filter. If true, then a resource filter short-circuted execution by setting [Microsoft.AspNet.Mvc.ResourceExecutingContext.Result](Microsoft.AspNet.Mvc.ResourceExecutingContext.yml).
Return type: System.Boolean public virtual bool Canceled { get; set; }
-
Exception
()¶ Gets or set the current [Microsoft.AspNet.Mvc.ResourceExecutedContext.Exception](Microsoft.AspNet.Mvc.ResourceExecutedContext.yml).
Return type: System.Exception public virtual Exception Exception { get; set; }
-
ExceptionDispatchInfo
()¶ Gets or set the current [Microsoft.AspNet.Mvc.ResourceExecutedContext.Exception](Microsoft.AspNet.Mvc.ResourceExecutedContext.yml).
Return type: System.Runtime.ExceptionServices.ExceptionDispatchInfo public virtual ExceptionDispatchInfo ExceptionDispatchInfo { get; set; }
-
ExceptionHandled
()¶ Gets or sets a value indicating whether or not the current [Microsoft.AspNet.Mvc.ResourceExecutedContext.Exception](Microsoft.AspNet.Mvc.ResourceExecutedContext.yml) has been handled.
If <c>false</c> the [Microsoft.AspNet.Mvc.ResourceExecutedContext.Exception](Microsoft.AspNet.Mvc.ResourceExecutedContext.yml) will be rethrown by the runtime after resource filters have executed.
Return type: System.Boolean public virtual bool ExceptionHandled { get; set; }
-
Result
()¶ Gets or sets the result.
Return type: Microsoft.AspNet.Mvc.IActionResult public virtual IActionResult Result { get; set; }
-