ArcGIS Pro 2.7 API Reference Guide
GetBandIndex Method

ArcGIS.Core.Data.Raster Namespace > RasterDataset Class : GetBandIndex Method
Name of a band in this raster dataset.
Gets the index for a band in this raster dataset based on the band name. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public int GetBandIndex( 
   string name
)
Public Function GetBandIndex( _
   ByVal name As String _
) As Integer

Parameters

name
Name of a band in this raster dataset.

Return Value

An integer representing the band index based on the band name.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

RasterDataset Class
RasterDataset Members