ArcGIS Pro 2.9 API Reference Guide
AddSymbolLayerDrawing Method (GroupLayer)

ArcGIS.Desktop.Mapping Namespace > GroupLayer Class : AddSymbolLayerDrawing Method
Add Symbol Layer Drawing, SLD, to the group layer. After adding SLD it will be enabled. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public void AddSymbolLayerDrawing()
Public Sub AddSymbolLayerDrawing() 
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
SLD cannot be added to this layer
Remarks
Use CanAddSymbolLayerDrawing to determine if the group layer can have SLD added. If SLD cannot be added an System.InvalidOperationException will be thrown.
Note: Adding SLD to a group layer will set any feature layers within the group that already had SLD added back to their default settings.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

GroupLayer Class
GroupLayer Members