ArcGIS Pro 2.6 API Reference Guide
RemoveLayers Method (ILayerContainerEdit)

ArcGIS.Desktop.Mapping Namespace > ILayerContainerEdit Interface : RemoveLayers Method
An enumerable of Layers to be removed.
Remove multiple layers from the container. This method must be called on the MCT. Use QueuedTask.Run
Syntax
void RemoveLayers( 
   IEnumerable<Layer> layers
)
Sub RemoveLayers( _
   ByVal layers As IEnumerable(Of Layer) _
) 

Parameters

layers
An enumerable of Layers to be removed.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

ILayerContainerEdit Interface
ILayerContainerEdit Members