DataProviderBase<TConfig>.LoadDataAsync<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.
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;
member this.LoadDataAsync : '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)
Public Function LoadDataAsync(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
Strong typed object to parse the response items into.
- 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.
Task<IEnumerable<TSchema>>
Strong typed list of results.
Produit | Versions |
---|---|
Windows Community Toolkit | 6.1.1 |