Edit

Share via


DbSpatialServices.Intersects Method

Definition

Determines whether the two given values spatially intersect.

Overloads

Intersects(DbGeography, DbGeography)

Determines whether the two given DbGeography values spatially intersect.

Intersects(DbGeometry, DbGeometry)

Determines whether the two given DbGeometry values spatially intersect.

Intersects(DbGeography, DbGeography)

Determines whether the two given DbGeography values spatially intersect.

public:
 abstract bool Intersects(System::Data::Spatial::DbGeography ^ geographyValue, System::Data::Spatial::DbGeography ^ otherGeography);
public abstract bool Intersects (System.Data.Spatial.DbGeography geographyValue, System.Data.Spatial.DbGeography otherGeography);
abstract member Intersects : System.Data.Spatial.DbGeography * System.Data.Spatial.DbGeography -> bool
Public MustOverride Function Intersects (geographyValue As DbGeography, otherGeography As DbGeography) As Boolean

Parameters

geographyValue
DbGeography

The first geography value to compare for intersection.

otherGeography
DbGeography

The second geography value to compare for intersection.

Returns

true if geographyValue intersects otherGeography; otherwise false.

Exceptions

geographyValue otherGeography

geographyValue otherGeography

Applies to

Intersects(DbGeometry, DbGeometry)

Determines whether the two given DbGeometry values spatially intersect.

public:
 abstract bool Intersects(System::Data::Spatial::DbGeometry ^ geometryValue, System::Data::Spatial::DbGeometry ^ otherGeometry);
public abstract bool Intersects (System.Data.Spatial.DbGeometry geometryValue, System.Data.Spatial.DbGeometry otherGeometry);
abstract member Intersects : System.Data.Spatial.DbGeometry * System.Data.Spatial.DbGeometry -> bool
Public MustOverride Function Intersects (geometryValue As DbGeometry, otherGeometry As DbGeometry) As Boolean

Parameters

geometryValue
DbGeometry

The first geometry value to compare for intersection.

otherGeometry
DbGeometry

The second geometry value to compare for intersection.

Returns

true if geometryValue intersects otherGeometry; otherwise false.

Exceptions

geometryValue otherGeometry

geometryValue otherGeometry

Applies to