Freigeben über


SpatialEdmFunctions.Elevation-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 'Elevation'-Funktion mit dem angegebenen Argument aufruft, das den Ergebnistyp Edm.Geography oder Edm.Geometry aufweisen muss. Der Ergebnistyp des Ausdrucks ist Edm.Double.

Namespace:  System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder.Spatial
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Elevation ( _
    spatialValue As DbExpression _
) As DbFunctionExpression
'Usage
Dim spatialValue As DbExpression 
Dim returnValue As DbFunctionExpression 

returnValue = spatialValue.Elevation()
public static DbFunctionExpression Elevation(
    this DbExpression spatialValue
)
[ExtensionAttribute]
public:
static DbFunctionExpression^ Elevation(
    DbExpression^ spatialValue
)
static member Elevation : 
        spatialValue:DbExpression -> DbFunctionExpression
public static function Elevation(
    spatialValue : DbExpression
) : DbFunctionExpression

Parameter

Rückgabewert

Typ: System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
Ein neuer DbFunctionExpression, der entweder den Höhenwert von spatialValue oder NULL zurückgibt, wenn spatialValue kein Punkt 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

SpatialEdmFunctions Klasse

System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder.Spatial-Namespace