Show / Hide Table of Contents

Method LoadAsync

LoadAsync()

Load the object asynchronously.

Declaration
public Task LoadAsync()
Returns
Type Description
Task

A task that represents the asynchronous load operation.

Implements
ILoadable.LoadAsync()
Remarks

Loads the object if it is not loaded. If loading is in progress, returns the existing load task. If the object is already loaded, this method completes immediately. If the object has failed to load, the returned task will be in a failed state with LoadError as the exception. Use RetryLoadAsync() to retry a failed or canceled load.

Exceptions
Type Condition
ExpiredException

Package was authored to prevent expired access.

UnpackRequiredException

Package contains data that requires unpack before loading.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.5 - 200.8
.NET100.13 - 300.1
.NET Windows100.13 - 300.1
.NET Android200.0 - 300.1
.NET iOS200.0 - 300.1
.NET Framework100.5 - 200.8
Xamarin.Android100.5 - 100.15
Xamarin.iOS100.5 - 100.15
UWP100.5 - 200.8
Relevant samples
Open mobile scene package: Opens and displays a scene from a Mobile Scene Package (.mspk).
In this article
Provide feedback
Back to top Copyright © 2025 Esri.