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.BulkLoadAsync(CancellationToken, IXPBulkLoadableCollection[]) Method

Asynchronously retrieves persistent objects to populate specified IXPBulkLoadableCollection type collections.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

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

Parameters

Name Type Description
cancellationToken CancellationToken

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

collections DevExpress.Xpo.Helpers.IXPBulkLoadableCollection[]

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

Parameters

Name Type Description
cancellationToken CancellationToken

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

collections DevExpress.Xpo.Helpers.IXPBulkLoadableCollection[]

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

Returns

Type Description
Task

A Task that populates specified collections.

Returns

Type Description
Task

A Task that populates specified collections.

Remarks

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