SpatialEdmFunctions.SpatialElementAt(DbExpression, DbExpression) Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee maakt u een DbFunctionExpression die de canonieke functie SpatialElementAt aanroept met de opgegeven argumenten. Het eerste argument moet een resultaattype Edm.Geography of Edm.Geometry hebben. Het tweede argument moet een numeriek resultaattype voor een geheel getal hebben. Het resultaattype van de expressie is hetzelfde als dat van 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
Parameters
- spatialValue
- DbExpression
Een expressie die de waarde van de verzameling geografie of geometrie aangeeft.
- indexValue
- DbExpression
Een expressie die de positie aangeeft van het element dat moet worden opgehaald uit de geometrie- of geografieverzameling.
Retouren
Een nieuwe DbFunctionExpression die het verzamelingselement op positie indexValue in spatialValue of null niet spatialValue een verzameling retourneert.
Uitzonderingen
indexValue
spatialValue
indexValue