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


IRasterKeyProperties.SetBandProperty Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesRaster > ESRI.ArcGIS.DataSourcesRaster > Interfaces > IR > IRasterKeyProperties Interface > IRasterKeyProperties.SetBandProperty Method
ArcGIS Developer Help

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 Get and set key properties on a mosaic dataset