ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / CompositeLayer Class / 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)

In This Topic
    FindLayer Method (CompositeLayer)
    In This Topic
    Finds a layer using a URI.
    Syntax
    public virtual Layer FindLayer( 
       string layerURI,
       bool recursive
    )
    Public Overridable 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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also