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


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

IRasterInfo.BandCount Property

The number of bands in the Raster.

[Visual Basic .NET]
Public Property BandCount As Integer
[C#]
public int BandCount {get; set;}
[C++]
HRESULT get_BandCount(
  System.Int32* pCount
);
[C++]
HRESULT put_BandCount(
  long pCount
);
[C++]
Parameters
pCount [out, retval]

pCount is a parameter of type long* pCount [in]
pCount is a parameter of type long

Product Availability

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

See Also

IRasterInfo Interface

.NET Samples

Create an NDVI custom raster function