ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / AnnotationLayer Class / FindLayer Method
The URI of the layer. Which is unique identifier for each layer
(optional) The parameter gets ignored since there is no sublayers in an AnnotationLayer. (default value = true)

FindLayer Method (AnnotationLayer)
Finds an annotation sub layer using a URI.
Syntax
public Layer FindLayer( 
   string layerURI,
   bool recursive
)

Parameters

layerURI
The URI of the layer. Which is unique identifier for each layer
recursive
(optional) The parameter gets ignored since there is no sublayers in an AnnotationLayer. (default value = true)

Return Value

An AnnotationSubLayer casted as Layer.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.0 or higher.
See Also