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+

Session.GetObjectsAsync(ObjectsQuery[], CancellationToken) Method

Asynchronously retrieves persistent objects obtained from specified queries.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.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())
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.

cancellationToken CancellationToken

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

Parameters

Name Type Description
queries ObjectsQuery[]

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

cancellationToken CancellationToken

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.

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