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

SimpleObjectLayer.LoadDelayedPropertiesAsync(Session, Object, MemberPathCollection, CancellationToken) Method

Asynchronously loads data from a session to an object’s specific properties marked for delayed loading.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v21.1.dll


public Task<object[]> LoadDelayedPropertiesAsync(
    Session session,
    object theObject,
    MemberPathCollection props,
    CancellationToken cancellationToken = default(CancellationToken)


Name Type Description
session Session

A Session that is used to retrieve data for delayed properties.

theObject Object

A persistent object that contains delayed properties specified by the props.

props DevExpress.Xpo.Metadata.Helpers.MemberPathCollection

A MemberPathCollection object that specifies member paths for delayed properties where the LoadDelayedPropertiesAsync method loads data from a session.

Optional Parameters

Name Type Default Description
cancellationToken CancellationToken


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


Type Description

A Task that returns an array of loaded property values.

See Also