DbSpatialServices.SpatialEquals Method (DbGeography, DbGeography)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Determines whether the two given DbGeography values are spatially equal.

Namespace:   System.Data.Spatial
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public abstract bool SpatialEquals(
	DbGeography geographyValue,
	DbGeography otherGeography
)

Parameters

geographyValue
Type: System.Data.Spatial.DbGeography

The first geography value to compare for equality.

otherGeography
Type: System.Data.Spatial.DbGeography

The second geography value to compare for equality.

Return Value

Type: System.Boolean

true if geographyValue is spatially equal to otherGeography; otherwise false.

Exception Condition
ArgumentNullException

geographyValueotherGeography

ArgumentException

geographyValueotherGeography

.NET Framework
Available since 4.5
Return to top
Show: