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


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

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