Skip to main content
A newer version of this page is available. .

InOperator Class

An operator which determines if a value matches any value in a specified list.

Namespace: DevExpress.Data.Filtering

Assembly: DevExpress.Data.v18.1.dll

Declaration

public class InOperator :
    CriteriaOperator

The following members accept/return InOperator objects:

Remarks

The InOperator can be used to build criteria expressions when filtering objects. To learn more, see Creating Criteria and Criteria Operators.

In the following example, the contents of the XPCollection are filtered to display only those persons whose names are specified in the list.


xpCollection1.Filter = new InOperator("Name", new string[] {"John", "Mike", "Nick"});

The image below shows the result:

INOperator

The following code snippets (auto-collected from DevExpress Examples) contain references to the InOperator class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

See Also