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

Session.GetObjectsAsync(ObjectsQuery[], CancellationToken) Method

Asynchronously retrieves persistent objects obtained from specified queries.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v21.2.dll


public virtual Task<ICollection[]> GetObjectsAsync(
    ObjectsQuery[] queries,
    CancellationToken cancellationToken = default(CancellationToken)


Name Type Description
queries ObjectsQuery[]

An array of ObjectsQuery objects that specify queries executed to retrieve persistent objects.

Optional Parameters

Name Type Default Description
cancellationToken CancellationToken


A CancellationToken object that delivers a cancellation notice to the running operation.


Type Description

A Task that returns a collection of obtained persistent objects.


This member supports the internal infrastructure and is not intended to be used directly from your code. To asynchronously get objects from a session, call the LoadAsync method of the XPCollection or XPView component.

See Also