The requested page is not available for the requested platform. You are viewing the content for Default platform.

BaseObjectSpace.GetObjects(Type, CriteriaOperator) Method

Returns an IList collection of objects of the specified type, retrieved to the current Object Space and filtered according to the specified criteria.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.1.dll

Declaration

public IList GetObjects(
    Type objectType,
    CriteriaOperator criteria
)
Public Function GetObjects(
    objectType As Type,
    criteria As CriteriaOperator
) As IList

Parameters

Name Type Description
objectType Type

The type of the objects to be retrieved.

criteria CriteriaOperator

A DevExpress.Data.Filtering.CriteriaOperator which specifies the criteria for object selection.

Returns

Type Description
IList

A IList collection that contains the persistent objects of the specified type. Only objects that satisfy the specified criteria will be retrieved to this collection.

Remarks

To get the specified objects, this method invokes a protected virtual CreateCollection method that does nothing and returns null. So, the details on how the objects are retrieved depend on how the CreateCollection method is overridden in a particular descendant of the BaseObjectSpace class.

See Also