SpatialEdmFunctions.PointAt-Methode
[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]
Erstellt ein DbFunctionExpression, das die kanonische 'PointAt'-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 derselbe wie der von spatialValue.
Namespace: System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder.Spatial
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function PointAt ( _
spatialValue As DbExpression, _
indexValue As DbExpression _
) As DbFunctionExpression
'Usage
Dim spatialValue As DbExpression
Dim indexValue As DbExpression
Dim returnValue As DbFunctionExpression
returnValue = spatialValue.PointAt(indexValue)
public static DbFunctionExpression PointAt(
this DbExpression spatialValue,
DbExpression indexValue
)
[ExtensionAttribute]
public:
static DbFunctionExpression^ PointAt(
DbExpression^ spatialValue,
DbExpression^ indexValue
)
static member PointAt :
spatialValue:DbExpression *
indexValue:DbExpression -> DbFunctionExpression
public static function PointAt(
spatialValue : DbExpression,
indexValue : DbExpression
) : DbFunctionExpression
Parameter
- spatialValue
Typ: System.Data.Entity.Core.Common.CommandTrees.DbExpression
Ein Ausdruck, der den räumlichen Linienzeichenfolgenwert angibt.
- indexValue
Typ: System.Data.Entity.Core.Common.CommandTrees.DbExpression
Ein Ausdruck, der die Position des Punkts angibt, der aus der Linienzeichenfolge abgerufen werden soll.
Rückgabewert
Typ: System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
Ein neuer DbFunctionExpression, der entweder den Punkt an der Position indexValue in spatialValue oder NULL zurückgibt, wenn spatialValue keine Zeilenzeichenfolge ist.
Hinweis zur Verwendung
In Visual Basic und C# können Sie diese Methode als Instanzenmethode für ein beliebiges Objekt vom Typ DbExpression aufrufen. Bei Verwendung der Syntax für Instanzenmethoden lassen Sie den ersten Parameter aus. Weitere Informationen finden Sie unter https://msdn.microsoft.com/de-de/library/bb384936(v=vs.113) oder https://msdn.microsoft.com/de-de/library/bb383977(v=vs.113).
Siehe auch
Verweis
System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder.Spatial-Namespace