.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

BaseObjectSpace.IsObjectFitForCriteria(Type, Object, CriteriaOperator) Method

Specifies whether a particular object satisfies the specified criteria.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v20.2.dll


public virtual bool? IsObjectFitForCriteria(
    Type objectType,
    object obj,
    CriteriaOperator criteria
Public Overridable Function IsObjectFitForCriteria(
    objectType As Type,
    obj As Object,
    criteria As CriteriaOperator
) As Boolean?


Name Type Description
objectType Type

The type of the object to be tested.

obj Object

A persistent object to be tested.

criteria CriteriaOperator

A CriteriaOperator object representing a criteria to be tested.


Type Description

true if the specified object passed as the obj parameter satisfies the criteria passed as the criteria parameter; otherwise, false.


To learn how to specify a criteria correctly, refer to the Ways to Build Criteria, Criteria Operators, How to: Build Complex Criteria and How to: Build Simple Criteria topics in the XPO documentation.


The type of the object passed as the obj parameter need not match the type passed as the objectType parameter. But the type passed as the objectType parameter must be assignable from the type of the object passed as the obj parameter.

See Also