ArcGIS Pro 2.9 API Reference Guide
HasSymbolLayerDrawingAdded Method (FeatureLayer)

ArcGIS.Desktop.Mapping Namespace > FeatureLayer Class : HasSymbolLayerDrawingAdded Method
Determine whether the feature layer or a parent group layer already has Symbol Layer Drawing added. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public ValueTuple<bool,bool> HasSymbolLayerDrawingAdded()
Public Function HasSymbolLayerDrawingAdded() As ValueTuple(Of Boolean,Boolean)

Return Value

Returns a tuple. addedOnLayer will be True if the feature layer has SLD added. addedOnParent will be true if the feature layer is participating in SLD controlled by a parent group layer with SLD added.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
If the feature layer has SLD added then tuple.addedOnLayer will be true. If the feature layer is part of a group layer that has SLD added then tuple.addedOnLayer will be false and tuple.addedOnParent will be true. If a layer, or parent group layer, had SLD added but but it contains invalid identifiers on the symbol layers then HasSymbolLayerDrawingAdded() will return false for the respective tuple value(s).
Use CanAddSymbolLayerDrawing to determine if a feature layer can have Symbol Layer Drawing, SLD, added.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

FeatureLayer Class
FeatureLayer Members