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

SerializableObjectLayerClient.LoadObjectsAsync(Session, ObjectsQuery[], CancellationToken) Method

Loads persistent objects asynchronously, according to specified query parameters.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.2.dll


public Task<ICollection[]> LoadObjectsAsync(
    Session session,
    ObjectsQuery[] queries,
    CancellationToken cancellationToken = default(CancellationToken)
Public Function LoadObjectsAsync(
    session As Session,
    queries As ObjectsQuery(),
    cancellationToken As CancellationToken = Nothing
) As Task(Of ICollection())


Name Type Description
session Session

A Session that is used to load persistent objects.

queries ObjectsQuery[]

An array of ObjectsQuery objects that specifies 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 an array of object collections. These object collections match specified query parameters.

See Also