All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

SessionObjectLayer.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.v20.1.dll

Declaration

public Task<object[]> LoadCollectionObjectsAsync(
    Session session,
    XPMemberInfo refProperty,
    object owner,
    CancellationToken cancellationToken = default(CancellationToken)
)
Public Function LoadCollectionObjectsAsync(
    session As Session,
    refProperty As XPMemberInfo,
    owner As Object,
    cancellationToken As CancellationToken = Nothing
) As Task(Of Object())

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.

owner 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