Back to Devexpress

FetchObjectsEventArgs.Criteria Property

expressappframework-devexpress-dot-expressapp-dot-fetchobjectseventargs.md

latest3.4 KB
Original Source

FetchObjectsEventArgs.Criteria Property

Specifies criteria used to filter objects in the Objects collection.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public CriteriaOperator Criteria { get; }
vb
Public ReadOnly Property Criteria As CriteriaOperator

Property Value

TypeDescription
CriteriaOperator

A criteria used to filter objects in the Objects collection.

|

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

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.

XAF_Non-Persistent-Objects-Filtering-Demo/CS/EFCore/NonPersistentFilteringEF.Module/BusinessObjects/Contact.cs#L60

csharp
if(e.ObjectType == typeof(Contact)) {
    var rows = contactsStorage.GetContactRows(e.Criteria, e.Sorting);
    e.Objects = rows.Select(row => GetContact(row));

XAF-CRUD-for-Non-Persistent-Objects-Stored-Remotely/CS/NonPersistentObjectsDemo.Module/TransientNonPersistentObjectAdapter.cs#L101

csharp
private void DynamicCollection_FetchObjects(object sender, FetchObjectsEventArgs e) {
    e.Objects = GetList(e.ObjectType, e.Criteria, e.Sorting);
    e.ShapeData = true;

XAF-CRUD-for-Non-Persistent-Objects-Stored-Remotely/VB/NonPersistentObjectsDemo.Module/TransientNonPersistentObjectAdapter.vb#L98

vb
Private Sub DynamicCollection_FetchObjects(ByVal sender As Object, ByVal e As FetchObjectsEventArgs)
    e.Objects = GetList(e.ObjectType, e.Criteria, e.Sorting)
    e.ShapeData = True

See Also

FetchObjectsEventArgs Class

FetchObjectsEventArgs Members

DevExpress.ExpressApp Namespace