Show / Hide Table of Contents

Property Sublayers

Sublayers

Gets a list of sublayers of this map image layer.

Declaration
public IList<ArcGISSublayer> Sublayers { get; }
Property Value
Type Description
System.Collections.Generic.IList<ArcGISSublayer>

A list of sublayers of this map image layer.

Remarks

Normally Sublayers is empty until the ArcGISMapImageLayer is loaded, and the list is read-only afterwards. However if the current MapService supports dynamic layers, then this list can be modified at any time. If dynamic sublayers are added to this list before the layer loads, they will be used instead of the default MapServer specified sublayers. The collection is specific to a layer so you can't reuse a sublayer collection coming from another ArcGISMapImageLayer or ArcGISSublayer. You have to create a new layer collection.

See Also
SupportsDynamicLayers
ResetSublayers()
ArcGISMapImageSublayer(Int64, SublayerSource)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
Relevant samples
Change sublayer renderer: Apply a renderer to a sublayer.
Identify layers: Identify features in all layers in a map. MapView supports identifying features across multiple layers. Because some layer types have sublayers, the sample recursively counts results for sublayers within each layer.
In This Article
Back to top Copyright © 2022 Esri.