DataProviderBase<TConfig>.GetDataAsync<TSchema> Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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;
abstract member GetDataAsync : 'Config * int * int * Microsoft.Toolkit.Parsers.IParser<'Schema (requires 'Schema :> Microsoft.Toolkit.Parsers.SchemaBase)> -> System.Threading.Tasks.Task<seq<'Schema>> (requires 'Schema :> Microsoft.Toolkit.Parsers.SchemaBase)
Protected MustOverride Function GetDataAsync(Of TSchema As SchemaBase) (config As TConfig, maxRecords As Integer, pageIndex As Integer, parser As IParser(Of TSchema)) As Task(Of IEnumerable(Of TSchema))
- TSchema
Schema defining data returned
- 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
Task<IEnumerable<TSchema>>
List of data
Produit | Versions |
---|---|
Windows Community Toolkit | 6.1.1 |