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

Session.BulkLoadAsync(CancellationToken, XPBaseCollection[]) Method

Asynchronously retrieves persistent objects to populate specified XPBaseCollection type collections.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.1.dll


public Task BulkLoadAsync(
    CancellationToken cancellationToken = default(CancellationToken),
    params XPBaseCollection[] collections
Public Function BulkLoadAsync(
    cancellationToken As CancellationToken = Nothing,
    ParamArray collections As XPBaseCollection()
) As Task


Name Type Description
collections XPBaseCollection[]

An array of empty XPBaseCollection type collections that receive persistent objects from a data store.

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 populates specified collections.


The result is the same as calling the XPBaseCollection.Load method for each collection individually. This method simplifies loading multiple collections when lazy loading is not appropriate.

See Also