Session.GetObjectsAsync(ObjectsQuery[], CancellationToken) Method
In This Article
Asynchronously retrieves persistent objects obtained from specified queries.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public virtual Task<ICollection[]> GetObjectsAsync(
ObjectsQuery[] queries,
CancellationToken cancellationToken = default(CancellationToken)
)
#Parameters
Name | Type | Description |
---|---|---|
queries | Objects |
An array of Objects |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
cancellation |
Cancellation |
null | A Cancellation |
#Returns
Type | Description |
---|---|
Task<ICollection[]> | A Task that returns a collection of obtained persistent objects. |
#Remarks
This member supports the internal infrastructure and is not intended to be used directly from your code. To asynchronously get objects from a session, call the LoadAsync method of the XPCollection or XPView component.
See Also