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


IRasterBandCollection.Add Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (DataSourcesRaster)  

IRasterBandCollection.Add Method

Adds a RasterBand to the band collection.

[Visual Basic .NET]
Public Sub Add ( _
    ByVal Element As IRasterBand, _
    ByVal index As Integer _
)
[C#]
public void Add (
    IRasterBand Element,
    int index
);
[C++]
HRESULT Add(
  IRasterBand* Element,
  long index
);
[C++]

Parameters Element [in]
Element is a parameter of type IRasterBand index [in] index is a parameter of type long

Product Availability

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

Remarks

This method is only applicable to work with a Raster, not with a RasterDataset.

See Also

IRasterBandCollection Interface