Skip to main content
All docs
.NET 6.0+

CompositeObjectSpace.CreateServerCollection(Type, CriteriaOperator) Method

Creates and initializes a new instance of the EFServerCollection or XPServerCollectionSource class with criteria-specific options.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp


public override object CreateServerCollection(
    Type objectType,
    CriteriaOperator criteria


Name Type Description
objectType Type

The type of objects to include into the collection.

criteria CriteriaOperator

The DevExpress.Data.Filtering.CriteriaOperator that specifies the criteria for object selection in a data store.


Type Description

A server collection that includes the objects of the specified type. In addition, only objects that satisfy the specified criteria will be retrieved to this collection.


The newly created collection will use the current Object Space to load and save objects.

This method is used by Collection Sources (see CollectionSource and PropertyCollectionSource) to create a collection in server mode.

See Also