.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

XPBaseCollection.Criteria Property

Gets or sets the criteria used to filter objects on the data store side.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v21.1.dll

Declaration

public CriteriaOperator Criteria { get; set; }

Property Value

Type Description
CriteriaOperator

A CriteriaOperator object that specifies the criteria to filter objects on the data store side.

Remarks

Use the Criteria property in order to change the criteria by which the persistent objects will be filtered during collection loading on the storage side. If you change this property’s value, the collection is refreshed immediately. But if you change any of its criteria members, you must call the XPBaseCollection.Reload method in order to force loading. To temporarily prevent a collection from loading/reloading data use the XPBaseCollection.LoadingEnabled property.

For examples and additional information about filter expressions, see these help topics:

Note

Unlike the XPCollection’s XPBaseCollection.Filter, Criteria can be built on persistent properties only.

See Also