This document is archived and information here might be outdated.  Recommended version.

IRasterBandCollection.BandIndex Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesRaster > ESRI.ArcGIS.DataSourcesRaster > Interfaces > IR > IRasterBandCollection Interface > IRasterBandCollection.BandIndex Property
ArcGIS Developer Help

IRasterBandCollection.BandIndex Property

The index of a RasterBand given its name.

[Visual Basic .NET]
Public Function get_BandIndex ( _
    ByVal Name As String _
) As Integer
public int get_BandIndex (
    string Name
HRESULT get_BandIndex(
  BSTR Name,
  System.Int32* BandIndex
Name [in]

Name is a parameter of type BSTR BandIndex [out, retval]
BandIndex is a parameter of type long*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IRasterBandCollection Interface