ArcGIS Pro 2.9 API Reference Guide
SetUseSymbolLayerDrawing Method (FeatureLayer)

ArcGIS.Desktop.Mapping Namespace > FeatureLayer Class : SetUseSymbolLayerDrawing Method
Set to true to use symbol layer drawing
Sets whether Symbol Layer Drawing will be used on the feature layer or not. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public void SetUseSymbolLayerDrawing( 
   bool useSLD
)
Public Sub SetUseSymbolLayerDrawing( _
   ByVal useSLD As Boolean _
) 

Parameters

useSLD
Set to true to use symbol layer drawing
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
SLD is being controlled by a parent group layer
Remarks
Calling SetUseSymbolLayerDrawing(useSLD) on a feature layer that does not have SLD added, or on a feature layer that is part of a group layer using SLD, will throw an System.InvalidOperationException. Use HasSymbolLayerDrawingAdded to determine if the layer has SLD added or participates in a parent group layer with SLD added.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

FeatureLayer Class
FeatureLayer Members