DbSpatialServices.Touches(DbGeometry, DbGeometry) 方法

定义

确定两个给定的 DbGeometry 值是否在空间上触控。

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

参数

geometryValue
DbGeometry

第一个几何图形值。

otherGeometry
DbGeometry

第二个几何图形值。

返回

如果 geometryValue 接触 otherGeometry,则为 true;否则为 false。

例外

geometryValueotherGeometry 为 null。

geometryValueotherGeometry 与此空间服务实现不兼容。

适用于