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+

XPObjectSpace.CreateServerCollection(Type, CriteriaOperator) Method

Creates and initializes a new instance of the XPServerCollectionSource class with the current Object Space's XPObjectSpace.Session and criteria-specific options.

Namespace: DevExpress.ExpressApp.Xpo

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

Declaration

public override object CreateServerCollection(
    Type objectType,
    CriteriaOperator criteria
)
Public Overrides Function CreateServerCollection(
    objectType As Type,
    criteria As CriteriaOperator
) As Object
public override object CreateServerCollection(
    Type objectType,
    CriteriaOperator criteria
)
Public Overrides Function CreateServerCollection(
    objectType As Type,
    criteria As CriteriaOperator
) As Object
public override object CreateServerCollection(
    Type objectType,
    CriteriaOperator criteria
)
Public Overrides Function CreateServerCollection(
    objectType As Type,
    criteria As CriteriaOperator
) As Object

Parameters

Name Type Description
objectType Type

The type of persistent objects to include into the collection.

criteria CriteriaOperator

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

Parameters

Name Type Description
objectType Type

The type of persistent objects to include into the collection.

criteria CriteriaOperator

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

Parameters

Name Type Description
objectType Type

The type of persistent objects to include into the collection.

criteria CriteriaOperator

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

Returns

Type Description
Object

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

Returns

Type Description
Object

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

Returns

Type Description
Object

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

Remarks

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

This method is used by Collection Sources (see CollectionSource and PropertyCollectionSource) to create a collection in server mode. For details on the XPServerCollectionSource class, refer to the XPServerCollectionSource topic in the XPO documentation.

See Also