ArcGIS Pro 2.6 API Reference Guide
SetDefinition Method (Layer)

ArcGIS.Desktop.Mapping Namespace > Layer Class : SetDefinition Method
ArcGIS.Core.CIM.CIMBaseLayer
Updates the layer's CIM definition. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public void SetDefinition( 
   CIMBaseLayer baseLayer
)
Public Sub SetDefinition( _
   ByVal baseLayer As CIMBaseLayer _
) 

Parameters

baseLayer
ArcGIS.Core.CIM.CIMBaseLayer
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Layer Class
Layer Members