ArcGIS Pro 2.8 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 10, Windows 8.1

See Also

Reference

CIMLegend Class
CIMLegend Members