DataProviderBase<TConfig>.LoadDataAsync<TSchema> Method

Definition

Load data from provider endpoint.

C#
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TSchema>> LoadDataAsync<TSchema> (TConfig config, int maxRecords, int pageIndex, Microsoft.Toolkit.Parsers.IParser<TSchema> parser) where TSchema : Microsoft.Toolkit.Parsers.SchemaBase;

Type Parameters

TSchema

Strong typed object to parse the response items into.

Parameters

config
TConfig

Query configuration.

maxRecords
Int32

Upper record limit.

pageIndex
Int32

The zero-based index of the page that corresponds to the items to retrieve.

parser
IParser<TSchema>

Parser to use for results.

Returns

Task<IEnumerable<TSchema>>

Strong typed list of results.

Applies to

Produit Versions
Windows Community Toolkit 6.1.1