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

InOperator(String, IEnumerable) Constructor

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

Namespace: DevExpress.Data.Filtering

Assembly: DevExpress.Data.v19.1.dll

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