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
Target | Versions |
---|---|
.NET Standard 2.0 | 200.3 - 200.5 |
.NET | 200.3 - 200.5 |
.NET Windows | 200.3 - 200.5 |
.NET Android | 200.3 - 200.5 |
.NET iOS | 200.3 - 200.5 |
.NET Framework | 200.3 - 200.5 |
UWP | 200.3 - 200.5 |