ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data.Raster Namespace / Raster Class / GetBand Method
Index of a band in this raster.

In This Topic
    GetBand Method (Raster)
    In This Topic
    Gets the RasterBand from this raster based on the band index. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Function GetBand( _
       ByVal index As Integer _
    ) As RasterBand
    public RasterBand GetBand( 
       int index
    )

    Parameters

    index
    Index of a band in this raster.

    Return Value

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

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

    ArcGIS Pro version: 3.0 or higher.
    See Also