ArcGIS Pro 2.8 API Reference Guide
GetSnapshot Method (ILayerContainer)

ArcGIS.Desktop.Mapping Namespace > ILayerContainer Interface : GetSnapshot Method
Returns a read-only snapshot of the layers in the container.
Syntax
Remarks
Prefer this function over direct access to the Layers collection.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

ILayerContainer Interface
ILayerContainer Members