Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DbSpatialServices.SpatialEquals Method (DbGeography, DbGeography)

.NET Framework 4.6 and 4.5

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.

ExceptionCondition
ArgumentNullException

geographyValue otherGeography

ArgumentException

geographyValue otherGeography

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft