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+

IObjectSpace.CreateCollection(Type, CriteriaOperator, IList<SortProperty>) Method

Creates and initializes a collection of objects of the specified type, filtered according to the specified criteria and sorted according to the given sorting list.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

IList CreateCollection(
    Type objectType,
    CriteriaOperator criteria,
    IList<SortProperty> sorting
)
Function CreateCollection(
    objectType As Type,
    criteria As CriteriaOperator,
    sorting As IList(Of SortProperty)
) As IList
IList CreateCollection(
    Type objectType,
    CriteriaOperator criteria,
    IList<SortProperty> sorting
)
Function CreateCollection(
    objectType As Type,
    criteria As CriteriaOperator,
    sorting As IList(Of SortProperty)
) As IList
IList CreateCollection(
    Type objectType,
    CriteriaOperator criteria,
    IList<SortProperty> sorting
)
Function CreateCollection(
    objectType As Type,
    criteria As CriteriaOperator,
    sorting As IList(Of SortProperty)
) As IList

Parameters

Name Type Description
objectType Type

The type of persistent objects to include in the collection.

criteria CriteriaOperator

The CriteriaOperator that specifies a criteria for object selection in a data store.

sorting IList<SortProperty>

An IList<SortProperty> object that specifies sorting.

Parameters

Name Type Description
objectType Type

The type of persistent objects to include in the collection.

criteria CriteriaOperator

The CriteriaOperator that specifies a criteria for object selection in a data store.

sorting IList<SortProperty>

An IList<SortProperty> object that specifies sorting.

Parameters

Name Type Description
objectType Type

The type of persistent objects to include in the collection.

criteria CriteriaOperator

The CriteriaOperator that specifies a criteria for object selection in a data store.

sorting IList<SortProperty>

An IList<SortProperty> object that specifies sorting.

Returns

Type Description
IList

A IList collection that includes the persistent objects of the specified type. This collection is sorted according to the given sort list. In addition, only objects that satisfy the specified criteria will be retrieved to this collection.

Returns

Type Description
IList

A IList collection that includes the persistent objects of the specified type. This collection is sorted according to the given sort list. In addition, only objects that satisfy the specified criteria will be retrieved to this collection.

Returns

Type Description
IList

A IList collection that includes the persistent objects of the specified type. This collection is sorted according to the given sort list. In addition, only objects that satisfy the specified criteria will be retrieved to this collection.

Remarks

Use this method to create a collection of objects of the specified type, filtered according to the specified criteria and sorted according to the given sorting list.. The newly created collection will use the current Object Space to load and save persistent objects.

If you implement the IObjectSpace interface in the BaseObjectSpace class' descendant, you should override a virtual protected BaseObjectSpace.CreateCollection method which is called by the BaseObjectSpace.CreateCollection method.

See Also