ArcGIS Pro 2.7 API Reference Guide
FindLayers Method (Map)

ArcGIS.Desktop.Mapping Namespace > Map Class : FindLayers Method
Name of the layer
(optional) When true the search continues in group layers. (default value = true)
Finds layers by name.
Syntax
Public Function FindLayers( _
   ByVal name As String, _
   Optional ByVal recursive As Boolean _
) As IReadOnlyList(Of Layer)

Parameters

name
Name of the layer
recursive
(optional) When true the search continues in group layers. (default value = true)

Return Value

A read only list of Layers
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Map Class
Map Members