DbSpatialServices.Disjoint 方法 (DbGeometry, DbGeometry)
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
确定两个给定的 DbGeometry 值是否在空间上不相交。
命名空间: System.Data.Entity.Spatial
程序集: EntityFramework(在 EntityFramework.dll 中)
声明
Public MustOverride Function Disjoint ( _
geometryValue As DbGeometry, _
otherGeometry As DbGeometry _
) As Boolean
用法
Dim instance As DbSpatialServices
Dim geometryValue As DbGeometry
Dim otherGeometry As DbGeometry
Dim returnValue As Boolean
returnValue = instance.Disjoint(geometryValue, _
otherGeometry)
public abstract bool Disjoint(
DbGeometry geometryValue,
DbGeometry otherGeometry
)
public:
virtual bool Disjoint(
DbGeometry^ geometryValue,
DbGeometry^ otherGeometry
) abstract
abstract Disjoint :
geometryValue:DbGeometry *
otherGeometry:DbGeometry -> bool
public abstract function Disjoint(
geometryValue : DbGeometry,
otherGeometry : DbGeometry
) : boolean
- geometryValue
类型:System.Data.Entity.Spatial.DbGeometry
用来比较不相交性的第一个几何值。
- otherGeometry
类型:System.Data.Entity.Spatial.DbGeometry
用来比较不相交性的第二个几何值。
类型:System.Boolean
如果 geometryValue 不与 otherGeometry 相交,则为 true;否则为 false。
例外 | 条件 |
---|---|
ArgumentNullException | geometryValue 或 otherGeometry 为 null。 |
ArgumentException | geometryValue 或 otherGeometry 与此空间服务实现不兼容。 |