ArcGIS Pro 2.6 API Reference Guide
GetBand Method (Raster)

ArcGIS.Core.Data.Raster Namespace > Raster Class : GetBand Method
Index of a band in this 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
)
Public Function GetBand( _
   ByVal index As Integer _
) As RasterBand

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 10, Windows 8.1, Windows 7

See Also

Reference

Raster Class
Raster Members