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+
.NET Core 3.0+

BaseObjectSpace.FindObject<ObjectType>(CriteriaOperator) 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.v19.2.dll

Declaration

public ObjectType FindObject<ObjectType>(
    CriteriaOperator criteria
)
Public Function FindObject(Of ObjectType)(
    criteria As CriteriaOperator
) As ObjectType
public ObjectType FindObject<ObjectType>(
    CriteriaOperator criteria
)
Public Function FindObject(Of ObjectType)(
    criteria As CriteriaOperator
) As ObjectType
public ObjectType FindObject<ObjectType>(
    CriteriaOperator criteria
)
Public Function FindObject(Of ObjectType)(
    criteria As CriteriaOperator
) As ObjectType

Parameters

Name Type Description
criteria CriteriaOperator

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

Parameters

Name Type Description
criteria CriteriaOperator

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

Parameters

Name Type Description
criteria CriteriaOperator

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

Returns

Type Description
ObjectType

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
ObjectType

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
ObjectType

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.

Type Parameters

Name Description
ObjectType

Type Parameters

Name Description
ObjectType

Type Parameters

Name Description
ObjectType

Remarks

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