ArcGIS Pro 2.6 API Reference Guide
GetBandByName Method (RasterDataset)

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

Parameters

name
Name of a band in this raster dataset.

Return Value

The RasterBand from this raster dataset based on the band name.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

RasterDataset Class
RasterDataset Members