SpatialEdmFunctions.SpatialContains(DbExpression, DbExpression) 方法

定義

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

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

參數

geometryValue1
DbExpression

指定第一個幾何值的運算式。

geometryValue2
DbExpression

運算式,指定要與 geometryValue1 比較的幾何值。

傳回

傳回表示 geometryValue1 是否在空間上包含 geometryValue2 之布林值的新 DbFunctionExpression。

例外狀況

geometryValue1 geometryValue2

geometryValue1 geometryValue2

適用於