ArcGIS Pro 3.7 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 Function GetBandCount() As Integer
    public int GetBandCount()

    Return Value

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

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also