SpatialEdmFunctions.SpatialElementAt(DbExpression, DbExpression) Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Vytvoří, DbFunctionExpression která vyvolá kanonickou funkci SpatialElementAt se zadanými argumenty. První argument musí mít typ výsledku Edm.Geography nebo Edm.Geometry. Druhý argument musí mít celočíselný číselný typ výsledku. Typ výsledku výrazu je stejný jako typ výrazu .spatialValue
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbFunctionExpression ^ SpatialElementAt(System::Data::Common::CommandTrees::DbExpression ^ spatialValue, System::Data::Common::CommandTrees::DbExpression ^ indexValue);
public static System.Data.Common.CommandTrees.DbFunctionExpression SpatialElementAt(this System.Data.Common.CommandTrees.DbExpression spatialValue, System.Data.Common.CommandTrees.DbExpression indexValue);
static member SpatialElementAt : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function SpatialElementAt (spatialValue As DbExpression, indexValue As DbExpression) As DbFunctionExpression
Parametry
- spatialValue
- DbExpression
Výraz, který určuje geografii nebo hodnotu kolekce geometrie.
- indexValue
- DbExpression
Výraz, který určuje pozici prvku, který se má načíst z geometrie nebo geografické kolekce.
Návraty
Nový DbFunctionExpression, který vrátí prvek kolekce na pozici indexValue v spatialValue , nebo null pokud spatialValue není kolekce.
Výjimky
indexValue
spatialValue
indexValue