Skip to main content

InOperator(String, IEnumerable) Constructor

Initializes a new instance of the InOperator class with the specified settings.

Namespace: DevExpress.Data.Filtering

Assembly: DevExpress.Data.v22.2.dll

NuGet Package: DevExpress.Data


public InOperator(
    string propertyName,
    IEnumerable values


Name Type Description
propertyName String

A String value which specifies the property name.

values IEnumerable

A collection of expressions to test for a match.


Use the following syntax in order to create this operator:

XPCollection entities = 
    new XPCollection(typeof(Entity), new InOperator("Oid", new object[] {contact, company}));


XPCollection clients = 
    new XPCollection(typeof(TestClient), new InOperator("Oid", new object[] {10, 20}));
See Also