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


IRasterInfo.BandCount Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (DataSourcesRaster)  

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(
  long* 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 (Code Files: NDVICustomFunction)