.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

IObjectLayer.SelectDataAsync(Session, ObjectsQuery, CriteriaOperatorCollection, CriteriaOperatorCollection, CriteriaOperator, AsyncSelectDataCallback) Method

When implemented by a class, asynchronously retrieves object data from a session using specified query parameters and notifies upon completion.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.1.dll

Declaration

object SelectDataAsync(
    Session session,
    ObjectsQuery query,
    CriteriaOperatorCollection properties,
    CriteriaOperatorCollection groupProperties,
    CriteriaOperator groupCriteria,
    AsyncSelectDataCallback callback
)
Function SelectDataAsync(
    session As Session,
    query As ObjectsQuery,
    properties As CriteriaOperatorCollection,
    groupProperties As CriteriaOperatorCollection,
    groupCriteria As CriteriaOperator,
    callback As AsyncSelectDataCallback
) As Object

Parameters

Name Type Description
session Session

A Session that is used to retrieve persistent objects.

query ObjectsQuery

An ObjectsQuery object specifying a query that is executed to retrieve persistent objects.

properties CriteriaOperatorCollection

A CriteriaOperatorCollection object which specifies object properties to be retrieved.

groupProperties CriteriaOperatorCollection

A CriteriaOperatorCollection object which specifies the grouping properties.

groupCriteria CriteriaOperator

A CriteriaOperator descendant which specifies the grouping criteria for the retrieved objects.

callback AsyncSelectDataCallback

An AsyncLoadObjectsCallback delegate to be called after the object data have been retrieved. Use the callback to store the exception information passed as a parameter, and use this information later, to raise the exception again, within the original thread. Do not raise exceptions or modify persistent objects within a callback.

Returns

Type Description
Object

An object identifying the current asynchronous operation, intended for internal use.

See Also