SliceAffectedLayer objects can be used to set a layer to be included or excluded from slicing.
Use GetAllSliceLayersAsync to retrieve SliceAffectedLayer objects to work with.
System.Object
ArcGIS.Desktop.Mapping.SliceAffectedLayer
Target Platforms: Windows 11, Windows 10, Windows 8.1