ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Data.Raster Namespace / Raster Class / GetBandByName Method
Name of a band in this raster.

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

Parameters

name
Name of a band in this raster.

Return Value

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

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.0 or higher.
See Also