SpatialEdmFunctions.SpatialElementAt(DbExpression, DbExpression) Metod

Definition

Skapar en DbFunctionExpression som anropar den kanoniska funktionen SpatialElementAt med de angivna argumenten. Det första argumentet måste ha resultattypen Edm.Geography eller Edm.Geometry. Det andra argumentet måste ha en numerisk resultattyp för heltal. Resultattypen för uttrycket är samma som spatialValueför .

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

Parametrar

spatialValue
DbExpression

Ett uttryck som anger värdet för geografi- eller geometrisamlingen.

indexValue
DbExpression

Ett uttryck som anger positionen för elementet som ska hämtas från geometri- eller geografisamlingen.

Returer

En ny DbFunctionExpression som antingen returnerar samlingselementet vid position indexValue i spatialValue eller null om spatialValue det inte är en samling.

Undantag

spatialValue indexValue

Gäller för