Skip to main content
.NET Framework 4.5.2+

BaseObjectSpace.FindObject<ObjectType>(CriteriaOperator, Boolean) Method

Searches for the first object of the type designated by the specified generic type parameter, matching the specified criteria.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v23.1.dll

NuGet Package: DevExpress.ExpressApp


public ObjectType FindObject<ObjectType>(
    CriteriaOperator criteria,
    bool inTransaction


Name Type Description
criteria CriteriaOperator

A DevExpress.Data.Filtering.CriteriaOperator descendant which is the criteria to match persistent objects.

inTransaction Boolean

true if all objects (in the database and retrieved) are processed by the specified criteria; otherwise, false. Has effect in XPO only.

Type Parameters



Type Description

An object which is the first persistent object which matches the specified criteria. null (Nothing in Visual Basic) if there is no persistent object which matches the criteria.


To find the specified object, this method invokes a public virtual FindObject method that does nothing and returns null. So, the details on how the objects are searched depend on how the FindObject virtual method is overridden in a particular descendant of the BaseObjectSpace class.

See Also