ArcGIS Pro 2.9 API Reference Guide
GetUseSymbolLayerDrawing Method (FeatureLayer)

ArcGIS.Desktop.Mapping Namespace > FeatureLayer Class : GetUseSymbolLayerDrawing Method
Gets whether the layer or a parent group layer is currently using Symbol Layer Drawing or not. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public ValueTuple<bool,bool> GetUseSymbolLayerDrawing()
Public Function GetUseSymbolLayerDrawing() As ValueTuple(Of Boolean,Boolean)

Return Value

Returns a tuple. useOnLayer will be true if the feature layer is currently using SLD. useOnParent will be true if a parent group layer is currently using SLD (and useOnLayer will be false).
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
SLD has not been added to this layer or a parent
Remarks
Calling GetUseSymbolLayerDrawing() on a feature layer that does not have SLD added or SLD added to a parent group layer will throw an System.InvalidOperationException. Use HasSymbolLayerDrawingAdded to determine if the feature layer has SLD added.
Note: useOnLayer will always be false for a feature layer that participates in a group layer using SLD. The group layer will control SLD for all participating child feature layers.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

FeatureLayer Class
FeatureLayer Members