.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.v20.2.dll

Declaration

public virtual Task<ICollection[]> GetObjectsAsync(
    ObjectsQuery[] queries,
    CancellationToken cancellationToken = default(CancellationToken)
)
Public Overridable Function GetObjectsAsync(
    queries As ObjectsQuery(),
    cancellationToken As CancellationToken = Nothing
) As Task(Of ICollection())

Parameters

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

null

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

Returns

Type Description
Task<ICollection[]>

A Task that returns a collection of obtained persistent objects.

Remarks

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