ArcObjects Library Reference (DataSourcesRaster)  

IRasterKeyProperties.SetBandProperty Method

Updates the value of the specified key property by name for a given band.

[Visual Basic .NET]
Public Sub SetBandProperty ( _
    ByVal sName As String, _
    ByVal BandIndex As Integer, _
    ByVal vtValue As Object _
)
[C#]
public void SetBandProperty (
    string sName,
    int BandIndex,
    object vtValue
);
[C++]
HRESULT SetBandProperty(
  BSTR sName,
  long BandIndex,
  VARIANT vtValue
);
[C++]

Parameters

sName [in]   sName is a parameter of type BSTR BandIndex [in]   BandIndex is a parameter of type long vtValue [in]   vtValue 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)