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

Declaration

public Task<object[]> LoadDelayedPropertiesAsync(
    Session session,
    object theObject,
    MemberPathCollection props,
    CancellationToken cancellationToken = default(CancellationToken)
)
Public Function LoadDelayedPropertiesAsync(
    session As Session,
    theObject As Object,
    props As MemberPathCollection,
    cancellationToken As CancellationToken = Nothing
) As Task(Of Object())

Parameters

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

null

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

Returns

Type Description
Task<Object[]>

A Task that returns an array of loaded property values.

See Also