ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.Raster Namespace / Raster Class / GetBandCount Method
Version

GetBandCount Method (Raster)
Gets the number of bands in this raster. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public int GetBandCount()

Return Value

An integer representing the number of bands in this raster.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also