SpatialEdmFunctions.SpatialOverlaps(DbExpression, DbExpression) 方法

定義

建立 DbFunctionExpression 一個,喚起標準的「空間重疊」函數,並指定參數,每個參數必須有一個 Edm.Geometry 結果型別。 表達式的結果類型為Edm.Boolean。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ SpatialOverlaps(System::Data::Common::CommandTrees::DbExpression ^ geometryValue1, System::Data::Common::CommandTrees::DbExpression ^ geometryValue2);
public static System.Data.Common.CommandTrees.DbFunctionExpression SpatialOverlaps(this System.Data.Common.CommandTrees.DbExpression geometryValue1, System.Data.Common.CommandTrees.DbExpression geometryValue2);
static member SpatialOverlaps : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function SpatialOverlaps (geometryValue1 As DbExpression, geometryValue2 As DbExpression) As DbFunctionExpression

參數

geometryValue1
DbExpression

一個指定第一個幾何值的表達式。

geometryValue2
DbExpression

一個表示式,指定應與 比較 geometryValue1的幾何值。

傳回

一個新的 DbFunctionExpression,回傳一個布林值,指示空間上是否geometryValue1重疊。geometryValue2

例外狀況

geometryValue1 geometryValue2

geometryValue1 geometryValue2

適用於