SpatialEdmFunctions.Measure(DbExpression) Metoda

Definice

Vytvoří DbFunctionExpression , která vyvolá kanonické funkce Míry se zadaným argumentem, který musí mít typ výsledku Edm.Geography nebo Edm.Geometry. Typ výsledku výrazu je Edm.Double.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Measure(System::Data::Common::CommandTrees::DbExpression ^ spatialValue);
public static System.Data.Common.CommandTrees.DbFunctionExpression Measure(this System.Data.Common.CommandTrees.DbExpression spatialValue);
static member Measure : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Measure (spatialValue As DbExpression) As DbFunctionExpression

Parametry

spatialValue
DbExpression

Výraz, který určuje hodnotu prostorového bodu, ze které by se měla načíst hodnota měr (M).

Návraty

Nový DbFunctionExpression, který vrátí buď míru spatialValue nebo null pokud spatialValue není bod.

Výjimky

spatialValue

spatialValue

Platí pro