DataProviderBase<TConfig>.GetDataAsync<TSchema> Method

Definition

Derived classes will have to implement this method to return provider data

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

Type Parameters

TSchema

Schema defining data returned

Parameters

config
TConfig

Configuration to use

maxRecords
Int32

Maximum number of records to return

pageIndex
Int32

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

parser
IParser<TSchema>

Parser to use

Returns

Task<IEnumerable<TSchema>>

List of data

Applies to

Produit Versions
Windows Community Toolkit 6.1.1