ArcGIS Pro 2.6 API Reference Guide
FindLayer Method (AnnotationLayer)

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)
Finds an annotation sub layer using a URI.
Syntax
public Layer FindLayer( 
   string layerURI,
   bool recursive
)
Public 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) 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 10, Windows 8.1, Windows 7

See Also

Reference

AnnotationLayer Class
AnnotationLayer Members