Click or drag to resize

LoadStatus Enumeration

The load status for a loadable object.

Namespace:  Esri.ArcGISRuntime
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version:
public enum LoadStatus
  Member nameValueDescription
Loaded0The object is fully loaded and ready to use.
Loading1The object is currently being loaded and some functionality may not work.
FailedToLoad2The object failed to load and some functionality may not work.
NotLoaded3The object is not loaded and some functionality may not work.
Used to determine the status of an ILoadable object.


Example Name: AccessLoadStatus

Determine the map's load status which can be: `NotLoaded`, `FailedToLoad`, `Loading`, `Loaded`.

Code example screen shot.

// Copyright 2016 Esri.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
// You may obtain a copy of the License at:
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an 
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific 
// language governing permissions and limitations under the License.

using Esri.ArcGISRuntime;
using Esri.ArcGISRuntime.Mapping;
using System.Threading;

namespace ArcGISRuntime.WPF.Samples.AccessLoadStatus
        "Access load status",
        "This sample demonstrates how to access the Maps' LoadStatus. The LoadStatus will be considered loaded when the following are true: The Map has a valid SpatialReference and the Map has an been set to the MapView.",
    public partial class AccessLoadStatus
        public AccessLoadStatus()

            // Create the UI, setup the control references and execute initialization 

        private void Initialize()
            // Create new Map with basemap
            Map myMap = new Map(Basemap.CreateImagery());

            // Register to handle loading status changes
            myMap.LoadStatusChanged += OnMapsLoadStatusChanged;

            // Provide used Map to the MapView
            MyMapView.Map = myMap;

        private void OnMapsLoadStatusChanged(object sender, LoadStatusEventArgs e)
            // Update the load status information
                new ThreadStart(() => 
                LoadStatusLabel.Content = string.Format("Map's load status : {0}", e.Status.ToString())
<UserControl x:Class="ArcGISRuntime.WPF.Samples.AccessLoadStatus.AccessLoadStatus"
        <esri:MapView x:Name="MyMapView" />
        <Border Style="{StaticResource BorderStyle}">
            <Label x:Name="LoadStatusLabel"
                   Content="Map's load status :"
                   FontWeight="SemiBold" />
See Also
Additional Examples
Hyperlink to ExampleDescription
AccessLoadStatusDetermine the map's load status which can be: `NotLoaded`, `FailedToLoad`, `Loading`, `Loaded`.
ApplyScheduledUpdatesApply scheduled updates to a downloaded preplanned map area.
DynamicWorkspaceRasterDynamically add a local raster file to a map using Local Server.
DynamicWorkspaceShapefileDynamically add a local shapefile to a map using Local Server.
EditAndSyncFeaturesSynchronize offline edits with a feature service.
FeatureLayerSelectionSelect features in a feature layer.
GenerateGeodatabaseGenerate a local geodatabase from an online feature service.
MobileMapSearchAndRouteDisplay maps and use locators to enable search and routing offline using a Mobile Map Package.
SearchPortalMapsFind webmap portal items by using a search term.
ServiceFeatureTableManualCacheDisplay a feature layer from a service using the **manual cache** feature request mode.
TimeBasedQueryThis sample demonstrates how to query data using a time extent. This workflow can be used to return records that are between a specified start and end date. For example, you could specify to only show records that are before September 16, 2000.