Session.BulkLoadAsync(CancellationToken, XPBaseCollection[]) Method
In This Article
Asynchronously retrieves persistent objects to populate specified XPBaseCollection type collections.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public Task BulkLoadAsync(
CancellationToken cancellationToken = default(CancellationToken),
params XPBaseCollection[] collections
)
#Parameters
Name | Type | Description |
---|---|---|
collections | XPBase |
An array of empty XPBase |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
cancellation |
Cancellation |
null | A Cancellation |
#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