ArcGIS Pro 2.7 API Reference Guide
Equals(Geometry,Geometry) Method

ArcGIS.Core.Geometry Namespace > GeometryEngine Class > Equals Method : Equals(Geometry,Geometry) Method
The base geometry.
The comparison geometry.
Returns true if geometry1 and geometry2 occupy the same space.
Syntax
Public Overloads Function Equals( _
   ByVal geometry1 As Geometry, _
   ByVal geometry2 As Geometry _
) As Boolean

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

See Also

Reference

GeometryEngine Class
GeometryEngine Members
Overload List