ArcGIS Pro 2.6 API Reference Guide
CreateRasterLayer Method (LayerFactory)

ArcGIS.Desktop.Mapping Namespace > LayerFactory Class : CreateRasterLayer Method
Overload List
OverloadDescription
Creates a new BasicRasterLayer using a System.Uri and adds it to a container such as a map or a group layer. Optionally you can provide a name and a RasterColorizerDefinition to override the default display name and ArcGIS.Core.CIM.CIMRasterColorizer respectively. This method must be called on the MCT. Use QueuedTask.Run.  
Creates a new BasicRasterLayer using a System.Uri and adds it to a container such as a map or a group layer. Optionally you can provide a name and a RasterColorizerDefinition to override the default display name and ArcGIS.Core.CIM.CIMRasterColorizer, respectively. This method must be called on the MCT. Use QueuedTask.Run.  
Creates a new BasicRasterLayer using a ArcGIS.Core.CIM.CIMDataConnection and adds it to a container such as a map or a group layer. Optionally you can provide a name and a RasterColorizerDefinition to override the default display name and ArcGIS.Core.CIM.CIMRasterColorizer, respectively. This method must be called on the MCT. Use QueuedTask.Run.  
Creates a new BasicRasterLayer using a ArcGIS.Core.CIM.CIMDataConnection and adds it to a container such as a map or a group layer. Optionally you can provide a name and a RasterColorizerDefinition to override the default display name and ArcGIS.Core.CIM.CIMRasterColorizer, respectively. This method must be called on the MCT. Use QueuedTask.Run.  
Creates a new BasicRasterLayer using a ArcGIS.Desktop.Core.Item and adds it to a container such as a map or a group layer. Optionally you can provide a name and a RasterColorizerDefinition to override the default display name and ArcGIS.Core.CIM.CIMRasterColorizer, respectively. This method must be called on the MCT. Use QueuedTask.Run.  
Creates a new BasicRasterLayer using an ArcGIS.Desktop.Core.Item and adds it to a container such as a map or a group layer. Optionally you can provide a name and a RasterColorizerDefinition to override the default display name and ArcGIS.Core.CIM.CIMRasterColorizer, respectively. 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