Share via


FilterQueryOption Class

This defines a $filter OData query option for querying.

Inheritance Hierarchy

System.Object
  System.Web.Http.OData.Query.FilterQueryOption

Namespace:  System.Web.Http.OData.Query
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

'Declaration
Public Class FilterQueryOption
'Usage
Dim instance As FilterQueryOption
public class FilterQueryOption
public ref class FilterQueryOption
type FilterQueryOption =  class end
public class FilterQueryOption

The FilterQueryOption type exposes the following members.

Constructors

  Name Description
Public method FilterQueryOption Initialize a new instance of FilterQueryOption based on the raw $filter value and an EdmModel from ODataQueryContext .

Top

Properties

  Name Description
Public property Context Gets the given ODataQueryContext .
Public property FilterClause Gets the parsed FilterClause for this query option.
Public property RawValue Gets the raw $filter value.
Public property Validator Gets or sets the Filter Query Validator

Top

Methods

  Name Description
Public method ApplyTo(IQueryable, ODataQuerySettings) Applies the filter query to the given IQueryable.
Public method ApplyTo(IQueryable, ODataQuerySettings, IAssembliesResolver) Applies the filter query to the given IQueryable.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method Validate Validate the filter query based on the given validationSettings . It throws an ODataException if validation failed.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Http.OData.Query Namespace