ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / LayerCreationParams Class / LayerCreationParams Constructor / LayerCreationParams Constructor(CIMLayerDocument)
A ArcGIS.Core.CIM.CIMLayerDocument object.
Example

In This Topic
    LayerCreationParams Constructor(CIMLayerDocument)
    In This Topic
    Creates a parameter object with ArcGIS.Core.CIM.CIMLayerDocument.
    Syntax
    public LayerCreationParams( 
       CIMLayerDocument layerDoc
    )
    Public Function New( _
       ByVal layerDoc As CIMLayerDocument _
    )

    Parameters

    layerDoc
    A ArcGIS.Core.CIM.CIMLayerDocument object.
    Example
    Create FeatureLayer and add to Map using LayerCreationParams
    //Note: Call within QueuedTask.Run()
    var layerDoc = new LayerDocument(@"E:\Data\SDK\Default2DPointSymbols.lyrx");
    var createParams = new LayerCreationParams(layerDoc.GetCIMLayerDocument());
    LayerFactory.Instance.CreateLayer<FeatureLayer>(createParams, MapView.Active.Map);
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also