SpatialEdmFunctions.SpatialEquals(DbExpression, DbExpression) 方法

定義

建立會使用指定之引數叫用標準 'SpatialEquals' 函式的 DbFunctionExpression,其中每個引數都必須具有 Edm.Geography 或 Edm.Geometry 結果型別。 spatialValue1 的結果型別必須符合 spatialValue2 的結果型別。 運算式的結果型別為 Edm.Boolean。

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

參數

spatialValue1
DbExpression

指定第一個空間值的運算式。

spatialValue2
DbExpression

運算式,指定要與 spatialValue1 比較相等性的空間值。

傳回

傳回表示 spatialValue1spatialValue2 是否相等之布林值的新 DbFunctionExpression。

例外狀況

spatialValue1 spatialValue2

spatialValue1 spatialValue2

適用於