This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > SpatialAnalyst > ESRI.ArcGIS.SpatialAnalyst > Interfaces > IC > IConditionalOp2 Interface > IConditionalOp2.Con Method (ArcObjects .NET 10.5 SDK) |
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 );
Optional Values
[C++]
HRESULT Con(
IGeoDataset* ConditionalRaster,
LPUNKNOWN TrueRaster,
VARIANT* FalseRaster,
IGeoDataset** Con
);
[C++]
Parameters ConditionalRaster [in]
ConditionalRaster is a parameter of type IGeoDataset TrueRaster [in] TrueRaster is a parameter of type LPUNKNOWN FalseRaster [optional] FalseRaster is a parameter of type VARIANT
To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND. Con [out, retval]
Con is a parameter of type IGeoDataset