Share via


DbSpatialServices.Contains(DbGeometry, DbGeometry) Method

Definition

Determines whether one DbGeometry value spatially contains the other.

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

Parameters

geometryValue
DbGeometry

The first geometry value.

otherGeometry
DbGeometry

The second geometry value.

Returns

true if geometryValue contains otherGeometry; otherwise false.

Exceptions

geometryValue or otherGeometry is null.

geometryValue or otherGeometry is not compatible with this spatial services implementation.

Applies to