Show / Hide Table of Contents

Method OnLoadAsync

OnLoadAsync()

Handles the loading process of a data source and returns DynamicEntityDataSourceInfo.

Declaration
protected virtual Task<DynamicEntityDataSourceInfo> OnLoadAsync()
Returns
Type Description
System.Threading.Tasks.Task<DynamicEntityDataSourceInfo>

A System.Threading.Tasks.Task<TResult> representing the result of the asynchronous operation.

Remarks

Override this method to populate and return a DynamicEntityDataSourceInfo object. This object defines the schema and metadata used by the internal data cache of the DynamicEntityDataSource. If the returned DynamicEntityDataSourceInfo object does not contain all required values, the data source will fail to load and will not be usable.

This method is called by the ArcGIS Maps SDK when loading is required. This can be due to an explicit call to load the data source using LoadAsync() or called implicitly when a layer that contains the data source needs to be rendered.

Code in a derived class should throw an exception if the load operation fails. The exception is passed back to the data source and is available in the LoadError property.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.3 - 200.7
.NET200.3 - 200.7
.NET Windows200.3 - 200.7
.NET Android200.3 - 200.7
.NET iOS200.3 - 200.7
.NET Framework200.3 - 200.7
UWP200.3 - 200.7
In This Article
Back to top Copyright © 2022 Esri.