使用英语阅读

通过


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)

参数

返回值

类型:System.Boolean
如果 geometryValue 不与 otherGeometry 相交,则为 true;否则为 false。

异常

例外 条件
ArgumentNullException

geometryValue 或 otherGeometry 为 null。

ArgumentException

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

请参阅

参考

DbSpatialServices 类

Disjoint 重载

System.Data.Entity.Spatial 命名空间