共用方式為


DbSpatialServices.Intersection 方法 (DbGeometry, DbGeometry)

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

計算兩個 DbGeometry 值的交集。

命名空間:  System.Data.Entity.Spatial
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
Public MustOverride Function Intersection ( _
    geometryValue As DbGeometry, _
    otherGeometry As DbGeometry _
) As DbGeometry
'用途
Dim instance As DbSpatialServices 
Dim geometryValue As DbGeometry 
Dim otherGeometry As DbGeometry 
Dim returnValue As DbGeometry 

returnValue = instance.Intersection(geometryValue, _
    otherGeometry)
public abstract DbGeometry Intersection(
    DbGeometry geometryValue,
    DbGeometry otherGeometry
)
public:
virtual DbGeometry^ Intersection(
    DbGeometry^ geometryValue, 
    DbGeometry^ otherGeometry
) abstract
abstract Intersection : 
        geometryValue:DbGeometry * 
        otherGeometry:DbGeometry -> DbGeometry
public abstract function Intersection(
    geometryValue : DbGeometry, 
    otherGeometry : DbGeometry
) : DbGeometry

參數

傳回值

類型:System.Data.Entity.Spatial.DbGeometry
表示 geometryValue 與 otherGeometry 之間交集的新 DbGeometry 值。

例外狀況

例外狀況 條件
ArgumentNullException

geometryValue 或 otherGeometry 為 null。

ArgumentException

geometryValue 或 otherGeometry 與此空間服務實作不相容。

請參閱

參考

DbSpatialServices 類別

Intersection 多載

System.Data.Entity.Spatial 命名空間