ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.Raster Namespace / RasterDataset Class / CreateRaster Method
A set of band indices to use to create the Raster. For example, [0,1,2].
Version

CreateRaster Method
Creates a Raster that has the same properties and the given list of bands from this raster dataset. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public Raster CreateRaster( 
   IEnumerable<int> bandIDs
)

Parameters

bandIDs
A set of band indices to use to create the Raster. For example, [0,1,2].

Return Value

The Raster created from this raster dataset.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also