ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Map Class / CanRemoveLayers Method
An enumerable of Layers to be removed.
Version

CanRemoveLayers Method (Map)
Determines if the layers can be removed from the container.
Syntax
public bool CanRemoveLayers( 
   IEnumerable<Layer> layers
)

Parameters

layers
An enumerable of Layers to be removed.

Return Value

True if the layers can be removed. False otherwise.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.3 or higher.
See Also