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


IConditionalOp2.Con Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (SpatialAnalyst)  

IConditionalOp2.Con Method

Performs a conditional if/else evaluation.

[Visual Basic .NET]
Public Function Con ( _
    ByVal ConditionalRaster As IGeoDataset, _
    ByVal TrueRaster As Object, _
    [ByRef FalseRaster As Object] _
) As IGeoDataset
[C#]
public IGeoDataset Con (
    IGeoDataset ConditionalRaster,
    object TrueRaster,
    ref object FalseRaster
);
[C++]
HRESULT Con(
  IGeoDataset* ConditionalRaster,
  LPUNKNOWN TrueRaster,
  Variant* FalseRaster
);
[C++]

Parameters ConditionalRaster [in]
ConditionalRaster is a parameter of type IGeoDataset* TrueRaster [in]
TrueRaster is a parameter of type IUnknown FalseRaster [in, optional]
FalseRaster is a parameter of type VARIANT*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

See Also

IConditionalOp2 Interface