ArcGIS Pro 2.8 API Reference Guide
GetBand Method (RasterDataset)

ArcGIS.Core.Data.Raster Namespace > RasterDataset Class : GetBand Method
Index of a band in this raster dataset.
Gets a RasterBand from this raster dataset 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 dataset.

Return Value

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

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

RasterDataset Class
RasterDataset Members