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


IConditionalOp2.Con Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SpatialAnalyst > ESRI.ArcGIS.SpatialAnalyst > Interfaces > IC > IConditionalOp2 Interface > IConditionalOp2.Con Method
ArcGIS Developer Help

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