QueryableAttribute.OnActionExecuted Method
Performs the query composition after action is executed.
Namespace: System.Web.Http
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public Overrides Sub OnActionExecuted ( _
actionExecutedContext As HttpActionExecutedContext _
)
'Usage
Dim instance As QueryableAttribute
Dim actionExecutedContext As HttpActionExecutedContext
instance.OnActionExecuted(actionExecutedContext)
public override void OnActionExecuted(
HttpActionExecutedContext actionExecutedContext
)
public:
virtual void OnActionExecuted(
HttpActionExecutedContext^ actionExecutedContext
) override
abstract OnActionExecuted :
actionExecutedContext:HttpActionExecutedContext -> unit
override OnActionExecuted :
actionExecutedContext:HttpActionExecutedContext -> unit
public override function OnActionExecuted(
actionExecutedContext : HttpActionExecutedContext
)
Parameters
- actionExecutedContext
Type: System.Web.Http.Filters.HttpActionExecutedContext
The context related to this action, including the response message, request message and HttpConfiguration etc.
Remarks
It first tries to retrieve the IQueryable from the returning response message. It then validates the query from uri based on the validation settings on QueryableAttribute. It finally applies the query appropriately, and reset it back on the response message.