ArcGIS Pro 2.7 API Reference Guide
AreEqual Method (SpatialReference)

ArcGIS.Core.Geometry Namespace > SpatialReference Class : AreEqual Method
The first spatial reference.
The spatial reference to compare to.
If set to true and if one SpatialReference is Unknown and the other is not, the two will be considered the same. Default value is false.
Default value is false. If set to true and the resolutions are not equal, false will be returned.
Determines if two spatial references are equal.
Syntax
Public Shared Function AreEqual( _
   ByVal sr1 As SpatialReference, _
   ByVal sr2 As SpatialReference, _
   Optional ByVal ignoreUnknown As Boolean, _
   Optional ByVal checkResolution As Boolean _
) As Boolean

Parameters

sr1
The first spatial reference.
sr2
The spatial reference to compare to.
ignoreUnknown
If set to true and if one SpatialReference is Unknown and the other is not, the two will be considered the same. Default value is false.
checkResolution
Default value is false. If set to true and the resolutions are not equal, false will be returned.

Return Value

True if the two spatial references are the same.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

SpatialReference Class
SpatialReference Members