Skip to main content
.NET 6.0+

SimpleObjectLayer.LoadDelayedPropertiesAsync(Session, IList, XPMemberInfo, CancellationToken) Method

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

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.1.dll

NuGet Package: DevExpress.Xpo

Declaration

public Task<ObjectDictionary<object>> LoadDelayedPropertiesAsync(
    Session session,
    IList objects,
    XPMemberInfo property,
    CancellationToken cancellationToken = default(CancellationToken)
)

Parameters

Name Type Description
session Session

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

objects IList

A list of persistent objects that contain the delayed property specified by the property.

property XPMemberInfo

An XPMemberInfo object specifying a delayed property that accepts the data the LoadDelayedPropertiesAsync method loads.

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<DevExpress.Xpo.Helpers.ObjectDictionary<Object>>

A Task that returns an array of loaded property values.

See Also