Return Value
True if SLD can be added to the feature layer
| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
{
//check if it can be added to the layer
//Note: Run within a QueuedTask
if (featureLayer.CanAddSymbolLayerDrawing())
featureLayer.AddSymbolLayerDrawing();
//ditto for a group layer...must have at least
//one child feature layer that can participate
if (groupLayer.CanAddSymbolLayerDrawing())
groupLayer.AddSymbolLayerDrawing();
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)