共用方式為


SpatialEdmFunctions.SpatialUnion(DbExpression, DbExpression) 方法

定義

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

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

參數

spatialValue1
DbExpression

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

spatialValue2
DbExpression

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

傳回

傳回表示 spatialValue1spatialValue2 聯集處之空間值的新 DbFunctionExpression。

例外狀況

spatialValue1 spatialValue2

spatialValue1 spatialValue2

適用於