ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.Raster Namespace / Raster Class / GetBand Method
Index of a band in this raster.
Version

GetBand Method (Raster)
Gets the RasterBand from this raster based on the band index. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public RasterBand GetBand( 
   int index
)

Parameters

index
Index of a band in this raster.

Return Value

The RasterBand from this raster based on the band index.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also