SpatialEdmFunctions.SpatialElementAt(DbExpression, DbExpression) Méthode

Définition

Crée un DbFunctionExpression qui appelle la fonction « SpatialElementAt » canonique avec les arguments spécifiés. Le premier argument doit avoir un type de résultat Edm.Geography ou Edm.Geometry. Le deuxième argument doit avoir un type de résultat numérique entier. Le type de résultat de l’expression est identique à celui de 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ètres

spatialValue
DbExpression

Expression qui spécifie la valeur de la collection geography ou geometry.

indexValue
DbExpression

Expression qui spécifie la position de l’élément à récupérer à partir de la collection geometry ou geography.

Retours

Nouvelle DbFunctionExpression qui retourne l’élément de collection à la position indexValue ou nullspatialValue s’il spatialValue ne s’agit pas d’une collection.

Exceptions

spatialValue indexValue

S’applique à