Sprache

SpatialEdmFunctions.SpatialElementAt(DbExpression, DbExpression) Methode

Definition

Erstellt eine DbFunctionExpression , die die kanonische "SpatialElementAt"-Funktion mit den angegebenen Argumenten aufruft. Das erste Argument muss einen Ergebnistyp "Edm.Geography" oder "Edm.Geometry" aufweisen. Das zweite Argument muss über einen ganzzahligen numerischen Ergebnistyp verfügen. Der Ergebnistyp des Ausdrucks ist identisch mit dem des spatialValue.The result type of the expression is the same as that of spatialValue.

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression SpatialElementAt(this System.Data.Entity.Core.Common.CommandTrees.DbExpression spatialValue, System.Data.Entity.Core.Common.CommandTrees.DbExpression indexValue);
static member SpatialElementAt : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function SpatialElementAt (spatialValue As DbExpression, indexValue As DbExpression) As DbFunctionExpression

Parameter

spatialValue
DbExpression

Ein Ausdruck, der den Wert der Geografie- oder Geometrieauflistung angibt.

indexValue
DbExpression

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

Gibt zurück

Ein neues DbFunctionExpression-Objekt, das entweder das Auflistungselement an position indexValue in spatialValue oder NULL zurückgibt, wenn spatialValue keine Auflistung ist.

Gilt für: