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


IRasterBandCollection.Count Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (DataSourcesRaster)  

IRasterBandCollection.Count Property

The number of bands in the collection.

[Visual Basic .NET]
Public ReadOnly Property Count As Integer
[C#]
public int Count {get;}
[C++]
HRESULT get_Count(
  long* Count
);
[C++]

Parameters Count [out, retval] Count is a parameter of type long

Product Availability

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

See Also

IRasterBandCollection Interface

.NET Samples

Create a custom default raster catalog renderer (Code Files: CustomRasterCatalogRenderer_VBNET)

.NET Related Topics

Handling multiband output | How to access pixel data using a raster cursor | How to access pixel data using the RawBlocks object | How to set raster properties when saving as a raster