FilterQueryOption.ApplyTo Method (IQueryable, ODataQuerySettings)
Applies the filter query to the given IQueryable.
Namespace: System.Web.Http.OData.Query
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public Function ApplyTo ( _
query As IQueryable, _
querySettings As ODataQuerySettings _
) As IQueryable
'Usage
Dim instance As FilterQueryOption
Dim query As IQueryable
Dim querySettings As ODataQuerySettings
Dim returnValue As IQueryable
returnValue = instance.ApplyTo(query, _
querySettings)
public IQueryable ApplyTo(
IQueryable query,
ODataQuerySettings querySettings
)
public:
IQueryable^ ApplyTo(
IQueryable^ query,
ODataQuerySettings^ querySettings
)
member ApplyTo :
query:IQueryable *
querySettings:ODataQuerySettings -> IQueryable
public function ApplyTo(
query : IQueryable,
querySettings : ODataQuerySettings
) : IQueryable
Parameters
- query
Type: System.Linq.IQueryable
The original IQueryable.
- querySettings
Type: System.Web.Http.OData.Query.ODataQuerySettings
The ODataQuerySettings that contains all the query application-related settings.
Return Value
Type: System.Linq.IQueryable
The new IQueryable after the filter query has been applied.