SpatialEdmFunctions.SpatialElementAt(DbExpression, DbExpression) Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Létrehoz egy olyan függvényt DbFunctionExpression , amely meghívja a "SpatialElementAt" függvényt a megadott argumentumokkal. Az első argumentumnak Edm.Geography vagy Edm.Geometry eredménytípussal kell rendelkeznie. A második argumentumnak egész szám típusú numerikus eredménytípussal kell rendelkeznie. A kifejezés eredménytípusa megegyezik a kifejezés eredménytípusával 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
Paraméterek
- spatialValue
- DbExpression
A földrajzi vagy geometriai gyűjtemény értékét meghatározó kifejezés.
- indexValue
- DbExpression
A geometriai vagy földrajzi gyűjteményben lekérendő elem pozícióját meghatározó kifejezés.
Válaszok
Egy új DbFunctionExpression, amely vagy a gyűjtemény elemet adja vissza a pozícióban indexValuespatialValue , vagy null ha spatialValue nem gyűjtemény.
Kivételek
indexValue
spatialValue
indexValue