ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / SliceAffectedLayer Class / SetExcluded Method
If true, the layer will not be sliced.

SetExcluded Method
Set whether the layer should be included or excluded in slicing.
Syntax
public void SetExcluded( 
   bool exclude
)

Parameters

exclude
If true, the layer will not be sliced.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.3 or higher.
See Also