ArcGIS Pro 2.6 API Reference Guide
CreateLayer Method (LayerFactory)

ArcGIS.Desktop.Mapping Namespace > LayerFactory Class : CreateLayer Method
Overload List
OverloadDescription
Creates a new Layer instance using the specified LayerCreationParams and adds that to a container such as a map or group layer. Optionally you can provide a name to override the default display name. This method must be called on the MCT. Use QueuedTask.Run.  
Overloaded. Creates a new Layer instance using the specified Item and adds that to a container such as a map or group layer. Optionally you can provide a name to override the default display name. This method must be called on the MCT. Use QueuedTask.Run.  
Overloaded. Creates a new Layer instance using the specified ItemInfoValue and adds that to a container such as a map or group layer. Optionally you can provide a name to override the default display name. This method must be called on the MCT. Use QueuedTask.Run.  
Creates a new Layer instance with the specified path to a dataset and adds it to a container such as a map or a group layer. Optionally you can provide a name to override the default display name. This method must be called on the MCT. Use QueuedTask.Run.  
Creates a new Layer instance with the specified path to a dataset and adds it to a container such as a map or a group layer. Optionally you can provide a name to override the default display name. This method must be called on the MCT. Use QueuedTask.Run.  
Overloaded. Create a new Layer instance using a CIMDefinition and adds that to a container such as a map or group layer. Optionally you can provide a name to override the default display name. This method must be called on the MCT. Use QueuedTask.Run  
Overloaded. Create a new Layer instance using a CIMDefinition and adds that to a container such as a map or group layer. Optionally you can provide a name to override the default display name. This method must be called on the MCT. Use QueuedTask.Run  
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

LayerFactory Class
LayerFactory Members