ArcGIS Pro 2.6 API Reference Guide
Equals Method (IGeometryEngine)

ArcGIS.Core.Geometry Namespace > IGeometryEngine Interface : Equals Method
The base geometry.
The comparison geometry.
Returns true if geometry1 and geometry2 occupy the same space.
Syntax

Parameters

geometry1
The base geometry.
geometry2
The comparison geometry.

Return Value

Returns true if geometry1 occupies the same space as geometry2.
Exceptions
ExceptionDescription
Either geometry1 or geometry2 or both are null or empty.
The method is not implemented for GeometryBag.
Incompatible spatial references between the input geometries.
Remarks
Returns false if either geometry is null or if the GeometryType of each are not the same.

GeometryEngine Equals

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

IGeometryEngine Interface
IGeometryEngine Members