SpatialEdmFunctions.SpatialDifference(DbExpression, DbExpression) 方法

定義

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

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

參數

spatialValue1
DbExpression

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

spatialValue2
DbExpression

運算式,指定要計算其與 spatialValue1 之間差異的空間值。

傳回

傳回表示 spatialValue2spatialValue1 差異之幾何值的新 DbFunctionExpression。

例外狀況

spatialValue1 spatialValue2

spatialValue1 spatialValue2

適用於