ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ILayerFactory Interface / CreateLayers Method / CreateLayers(IEnumerable<Uri>,ILayerContainerEdit,Int32) Method
The set of URIs that represent the path to a set of datasets.
A map or group layer where the Layers will be added.
The position of the first Layer in the map or group layer. 0 represents the top most position.

In This Topic
    CreateLayers(IEnumerable<Uri>,ILayerContainerEdit,Int32) Method
    In This Topic
    Creates a readonly list of new Layer instances for each of the specified dataset paths and adds them to a container such as a map. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    dataUris
    The set of URIs that represent the path to a set of datasets.
    container
    A map or group layer where the Layers will be added.
    index
    The position of the first Layer in the map or group layer. 0 represents the top most position.

    Return Value

    A Readonly list of Layer.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.4 or higher.
    See Also