Share via


SpatialEdmFunctions.SpatialElementAt(DbExpression, DbExpression) Methode

Definition

Erstellt einen DbFunctionExpression, der die kanonische SpatialElementAt-Funktion mit den angegebenen Argumenten aufruft. Das erste Argument muss einen Edm.Geography- oder Edm.Geometry-Ergebnistyp haben. Das zweite Argument muss einen ganzzahligen numerischen Ergebnistyp aufweisen. Der Ergebnistyp des Ausdrucks ist mit dem Ergebnistyp von spatialValue identisch.

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

Parameter

spatialValue
DbExpression

Ein Ausdruck, der die Geografie oder den Geometriesammlungswert angibt.

indexValue
DbExpression

Ein Ausdruck, der die Position des Elements angibt, das aus der Geometrie- oder Geografiesammlung abgerufen werden soll.

Gibt zurück

Ein neues DbFunctionExpression, das entweder das Auflistungselement an Position indexValue in spatialValue oder null zurückgibt, wenn spatialValue keine Auflistung ist.

Ausnahmen

spatialValue indexValue

Gilt für: