ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMLegend Class / ExcludedLayers Property

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;}
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.5 or higher.
See Also