SpatialEdmFunctions.SpatialIntersection(DbExpression, DbExpression) Metoda

Definice

Vytvoří DbFunctionExpression , který vyvolá kanonickou funkci SpatialIntersection se zadanými argumenty, které musí mít každý typ výsledku Edm.Geography nebo Edm.Geometry. Typ výsledku spatialValue1 musí odpovídat typu výsledku spatialValue2. Typ výsledku výrazu je stejný jako typ spatialValue1 a spatialValue2.

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

Parametry

spatialValue1
DbExpression

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

spatialValue2
DbExpression

Výraz, který určuje prostorovou hodnotu, pro kterou se má vypočítat průnik spatialValue1 .

Návraty

Nový DbFunctionExpression, který vrátí prostorovou hodnotu představující průnik a spatialValue1spatialValue2.

Výjimky

spatialValue1 spatialValue2

spatialValue1 spatialValue2

Platí pro