ArcGIS Pro 2.9 API Reference Guide
CanAddSymbolLayerDrawing Method (FeatureLayer)

ArcGIS.Desktop.Mapping Namespace > FeatureLayer Class : CanAddSymbolLayerDrawing Method
Determine whether the feature layer can have Symbol Layer Drawing added to its definition. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public bool CanAddSymbolLayerDrawing()
Public Function CanAddSymbolLayerDrawing() As Boolean

Return Value

True if SLD can be added to the feature layer
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
Symbol Layer Drawing, SLD, cannot be set/added for layers with unclassed symbols, proportional symbols, dictionary symbology, or for polygon feature layers with graduated symbols. CanAddSymbolLayerDrawing() will also return false if the input layer already has SLD added (unless the SLD is invalid) or is a child of a group layer that has SLD added. When SLD has been established for a group layer, it cannot be set for individual layers within the group; all SLD control is set through the parent group layer.
SLD is not available for 3D layers. It can only be set on feature layers in a map or in the 2D Layers category of a scene.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

FeatureLayer Class
FeatureLayer Members