ArcGIS Pro 2.6 API Reference Guide
CreateRaster Method

ArcGIS.Core.Data.Raster Namespace > RasterDataset Class : CreateRaster Method
An integer array representing the list of band indices to use to create the Raster. For example, [0,1,2].
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( 
   IReadOnlyList<int> bandIDs
)
Public Function CreateRaster( _
   ByVal bandIDs As IReadOnlyList(Of Integer) _
) As Raster

Parameters

bandIDs
An integer array representing the list 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 10, Windows 8.1, Windows 7

See Also

Reference

RasterDataset Class
RasterDataset Members