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

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

    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