QueryableAttribute.ApplyQuery Method (Object, ODataQueryOptions)
Applies the query to the given entity based on incoming query from uri and query settings.
Namespace: System.Web.Http
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public Overridable Function ApplyQuery ( _
entity As Object, _
queryOptions As ODataQueryOptions _
) As Object
'Usage
Dim instance As QueryableAttribute
Dim entity As Object
Dim queryOptions As ODataQueryOptions
Dim returnValue As Object
returnValue = instance.ApplyQuery(entity, _
queryOptions)
public virtual Object ApplyQuery(
Object entity,
ODataQueryOptions queryOptions
)
public:
virtual Object^ ApplyQuery(
Object^ entity,
ODataQueryOptions^ queryOptions
)
abstract ApplyQuery :
entity:Object *
queryOptions:ODataQueryOptions -> Object
override ApplyQuery :
entity:Object *
queryOptions:ODataQueryOptions -> Object
public function ApplyQuery(
entity : Object,
queryOptions : ODataQueryOptions
) : Object
Parameters
- entity
Type: System.Object
The original entity from the response message.
- queryOptions
Type: System.Web.Http.OData.Query.ODataQueryOptions
The ODataQueryOptions instance constructed based on the incoming request.
Return Value
Type: System.Object
The new entity after the $select and $expand query has been applied to.