Skip to main content
.NET 6.0+

SimpleObjectLayer.LoadCollectionObjectsAsync(Session, XPMemberInfo, Object, CancellationToken) Method

Performs object layer specific operations that are required to asynchronously load a collection property using specified settings.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.1.dll

NuGet Package: DevExpress.Xpo

Declaration

public Task<object[]> LoadCollectionObjectsAsync(
    Session session,
    XPMemberInfo refProperty,
    object ownerObject,
    CancellationToken cancellationToken = default(CancellationToken)
)

Parameters

Name Type Description
session Session

A Session that is used to asynchronously load collection objects.

refProperty XPMemberInfo

The ownerObject‘s property that references a collection property.

ownerObject Object

The object that owns the collection property.

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<Object[]>

A Task<TResult> that returns an array of collection objects.

See Also