SpatialEdmFunctions.SpatialContains(DbExpression, DbExpression) メソッド

定義

指定した引数で正規の 'SpatialContains' 関数を呼び出す DbFunctionExpression を作成します。指定する引数の結果型は Edm.Geometry である必要があります。Creates a DbFunctionExpression that invokes the canonical 'SpatialContains' function with the specified arguments, which must each have an Edm.Geometry result type. 式の結果型は Edm.Boolean です。The result type of the expression is 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

1 つ目のジオメトリ値を指定する式。An expression that specifies the first geometry value.

geometryValue2
DbExpression

geometryValue1 と比較する必要がある geometry 値を指定する式。An expression that specifies the geometry value that should be compared with geometryValue1.

戻り値

DbFunctionExpression

geometryValue1 が空間的に geometryValue2 を含むかどうかを示すブール値を返す新しい DbFunctionExpression。A new DbFunctionExpression that returns a Boolean value indicating whether geometryValue1 spatially contains geometryValue2.

例外

geometryValue1 geometryValue2

geometryValue1 geometryValue2

適用対象