SqlSpatialServices.Disjoint 方法 (DbGeography, DbGeography)
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
判斷兩個指定的 DbGeography 值是否在空間上不相交。
命名空間: System.Data.Entity.SqlServer
組件: EntityFramework.SqlServer (在 EntityFramework.SqlServer.dll 中)
語法
'宣告
Public Overrides Function Disjoint ( _
geographyValue As DbGeography, _
otherGeography As DbGeography _
) As Boolean
'用途
Dim instance As SqlSpatialServices
Dim geographyValue As DbGeography
Dim otherGeography As DbGeography
Dim returnValue As Boolean
returnValue = instance.Disjoint(geographyValue, _
otherGeography)
public override bool Disjoint(
DbGeography geographyValue,
DbGeography otherGeography
)
public:
virtual bool Disjoint(
DbGeography^ geographyValue,
DbGeography^ otherGeography
) override
abstract Disjoint :
geographyValue:DbGeography *
otherGeography:DbGeography -> bool
override Disjoint :
geographyValue:DbGeography *
otherGeography:DbGeography -> bool
public override function Disjoint(
geographyValue : DbGeography,
otherGeography : DbGeography
) : boolean
參數
- geographyValue
類型:System.Data.Entity.Spatial.DbGeography
要比較不相交的第一個地理位置值。
- otherGeography
類型:System.Data.Entity.Spatial.DbGeography
要比較不相交的第二個地理位置值。
傳回值
類型:System.Boolean
若 geographyValue 與 otherGeography 沒有交集,則為 true,否則為 false。