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

SerializableObjectLayerClient.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.v20.2.dll

Declaration

public Task<ObjectDictionary<object>> LoadDelayedPropertiesAsync(
    Session session,
    IList objects,
    XPMemberInfo property,
    CancellationToken cancellationToken = default(CancellationToken)
)
Public Function LoadDelayedPropertiesAsync(
    session As Session,
    objects As IList,
    property As XPMemberInfo,
    cancellationToken As CancellationToken = Nothing
) As Task(Of ObjectDictionary(Of Object))

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