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

SerializableObjectLayerClient.LoadObjectsAsync(Session, ObjectsQuery[], AsyncLoadObjectsCallback) Method

Performs object layer specific operations that are required to asynchronously load persistent objects using specified settings and notifies upon completion.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.2.dll

Declaration

public object LoadObjectsAsync(
    Session session,
    ObjectsQuery[] queries,
    AsyncLoadObjectsCallback callback
)
Public Function LoadObjectsAsync(
    session As Session,
    queries As ObjectsQuery(),
    callback As AsyncLoadObjectsCallback
) As Object

Parameters

Name Type Description
session Session

A Session that is used to load persistent objects.

queries ObjectsQuery[]

An array of ObjectsQuery objects specifying queries that are executed to retrieve persistent objects.

callback DevExpress.Xpo.Helpers.AsyncLoadObjectsCallback

n AsyncLoadObjectsCallback delegate to be called after the objects have been loaded. Use the callback to store the exception information passed as a parameter, and use this information later, to raise the exception again, within the original thread. Do not raise exceptions or modify persistent objects within a callback.

Returns

Type Description
Object

An object identifying the current asynchronous operation, intended for internal use.

See Also