SpatialEdmFunctions.SpatialContains(DbExpression, DbExpression) 方法

定義

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

C#
public static System.Data.Common.CommandTrees.DbFunctionExpression SpatialContains (this System.Data.Common.CommandTrees.DbExpression geometryValue1, System.Data.Common.CommandTrees.DbExpression geometryValue2);

參數

geometryValue1
DbExpression

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

geometryValue2
DbExpression

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

傳回

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

例外狀況

geometryValue1 geometryValue2

geometryValue1 geometryValue2

適用於

產品 版本
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1