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


IRasterBandCollection.BandByName Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (DataSourcesRaster)  

IRasterBandCollection.BandByName Property

A RasterBand given its name.

[Visual Basic .NET]
Public Function get_BandByName ( _
    ByVal Name As String _
) As IRasterBand
[C#]
public IRasterBand get_BandByName (
    string Name
);
[C++]
HRESULT get_BandByName(
  BSTR Name,
  IRasterBand** band
);
[C++]

Parameters Name [in] Name is a parameter of type BSTR band [out, retval]
band is a parameter of type IRasterBand

Product Availability

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

See Also

IRasterBandCollection Interface