ArcGIS Pro 2.7 API Reference Guide
FindLayer Method (ILayerContainer)

ArcGIS.Desktop.Mapping Namespace > ILayerContainer Interface : FindLayer Method
The URI of the layer. Which is unique identifier for each layer
(optional) When true the search continues in group layers. (default value = true)
Finds a layer using a URI.
Syntax
Function FindLayer( _
   ByVal layerURI As String, _
   Optional ByVal recursive As Boolean _
) As Layer

Parameters

layerURI
The URI of the layer. Which is unique identifier for each layer
recursive
(optional) When true the search continues in group layers. (default value = true)

Return Value

Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

ILayerContainer Interface
ILayerContainer Members