语言

DbSpatialServices.Within(DbGeometry, DbGeometry) 方法

定义

确定一个值是否在空间上位于另一 DbGeometry 个值内。

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

参数

geometryValue
DbGeometry

第一个几何图形值。

otherGeometry
DbGeometry

第二个几何图形值。

返回

如果 geometryValue 在其他Geometry 范围内,则为 true;否则为 false。

例外

geometryValue 或 otherGeometry 为 null。

geometryValue 或 otherGeometry 与此空间服务实现不兼容。

适用于