DbSpatialServices.Intersects 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 spatially intersect.

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

public abstract bool Intersects(
	DbGeography geographyValue,
	DbGeography otherGeography
)

Parameters

geographyValue
Type: System.Data.Spatial.DbGeography

The first geography value to compare for intersection.

otherGeography
Type: System.Data.Spatial.DbGeography

The second geography value to compare for intersection.

Return Value

Type: System.Boolean

true if geographyValue intersects otherGeography; otherwise false.

Exception Condition
ArgumentNullException

geographyValueotherGeography

ArgumentException

geographyValueotherGeography

.NET Framework
Available since 4.5
Return to top
Show: