SpatialEdmFunctions.SpatialContains(DbExpression, DbExpression) Metoda

Definice

Vytvoří DbFunctionExpression , která vyvolá kanonickou funkci SpatialContains se zadanými argumenty, které musí mít každý typ výsledku Edm.Geometry. Typ výsledku výrazu je 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

Parametry

geometryValue1
DbExpression

Výraz, který určuje první hodnotu geometrie.

geometryValue2
DbExpression

Výraz, který určuje hodnotu geometrie, která by měla být porovnána s geometryValue1.

Návraty

Nový DbFunctionExpression, který vrátí logickou hodnotu označující, zda geometryValue1 prostorově obsahuje geometryValue2.

Výjimky

geometryValue1 geometryValue2

geometryValue1 geometryValue2

Platí pro