ArcGIS API for WPF - Library Reference
AreEqual Method
See Also  Send comments on this topic
ESRI.ArcGIS.Client.Geometry Namespace > SpatialReference Class : AreEqual Method

sref1
The first spatial reference.
sref2
The spatial reference to sompare to..
ignoreNulls
if set to true if one SpatialReference is null and the other is not, the two will be considered the same.
Ares the equal.

Syntax

Visual Basic (Declaration) 
Public Shared Function AreEqual( _
   ByVal sref1 As SpatialReference, _
   ByVal sref2 As SpatialReference, _
   ByVal ignoreNulls As Boolean _
) As Boolean
C# 
public static bool AreEqual( 
   SpatialReference sref1,
   SpatialReference sref2,
   bool ignoreNulls
)

Parameters

sref1
The first spatial reference.
sref2
The spatial reference to sompare to..
ignoreNulls
if set to true if one SpatialReference is null and the other is not, the two will be considered the same.

Return Value

true is the two spatial references are the same. If both spatial references has a WKID set and is 1 or greater, this will take precedence in the comparison and WKT will be ignored. Secondary WKT will be compared using a simple non-case-sensitive comparison.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© ESRI, Inc. All Rights Reserved.