The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+

EFObjectSpace.FindObject(Type, CriteriaOperator, Boolean) Method

Searches for the first object which matches the specified criteria.

Namespace: DevExpress.ExpressApp.EF

Assembly: DevExpress.ExpressApp.EF.v19.2.dll

Declaration

public override object FindObject(
    Type type,
    CriteriaOperator criteria,
    bool inTransaction
)
Public Overrides Function FindObject(
    type As Type,
    criteria As CriteriaOperator,
    inTransaction As Boolean
) As Object
public override object FindObject(
    Type type,
    CriteriaOperator criteria,
    bool inTransaction
)
Public Overrides Function FindObject(
    type As Type,
    criteria As CriteriaOperator,
    inTransaction As Boolean
) As Object

Parameters

Name Type Description
type Type

A Type object which is the type of objects to search for.

criteria CriteriaOperator

A DevExpress.Data.Filtering.CriteriaOperator descendant which is the criteria for matching persistent objects.

inTransaction Boolean

A boolean value. It is not used during the search.

Parameters

Name Type Description
type Type

A Type object which is the type of objects to search for.

criteria CriteriaOperator

A DevExpress.Data.Filtering.CriteriaOperator descendant which is the criteria for matching persistent objects.

inTransaction Boolean

A boolean value. It is not used during the search.

Returns

Type Description
Object

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.

Returns

Type Description
Object

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.

See Also