ArcGIS Pro 2.9 API Reference Guide
ExcludedLayers Property

ArcGIS.Core.CIM Namespace > CIMLegend Class : ExcludedLayers Property
Gets or sets a collection of layer URIs from the associated map that are explicitly excluded from the legend.
Syntax
public string[] ExcludedLayers {get; set;}
Public Property ExcludedLayers As String()
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

CIMLegend Class
CIMLegend Members