ArcObjects Library Reference (DataSourcesRaster)  

IRasterKeyProperties.GetBandProperty Method

Returns the requested key property by name for a given band.

[Visual Basic .NET]
Public Function GetBandProperty ( _
    ByVal sName As String, _
    ByVal BandIndex As Integer _
) As Object
[C#]
public object GetBandProperty (
    string sName,
    int BandIndex
);
[C++]
HRESULT GetBandProperty(
  BSTR sName,
  long BandIndex,
  VARIANT* pvtValue
);
[C++]

Parameters

sName [in]   sName is a parameter of type BSTR BandIndex [in]   BandIndex is a parameter of type long pvtValue [out, retval]   pvtValue is a parameter of type VARIANT

Product Availability

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

See Also

IRasterKeyProperties Interface

.NET Samples

Create a custom raster type from the ground up for DMCII data (Code Files: DMCIIRasterType) | Get and set key properties on a mosaic dataset (Code Files: GetSetKeyProperty)