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.v23.2.dll

NuGet Package: DevExpress.Data

Declaration

public InOperator(
    string propertyName,
    IEnumerable values
)

Parameters

Name Type Description
propertyName String

A String value which specifies the property name.

values IEnumerable

A collection of expressions to test for a match.

Remarks

Use the following syntax in order to create this operator:

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

or

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