SpatialEdmFunctions.Measure(DbExpression) Methode

Definitie

Hiermee maakt u een DbFunctionExpression functie die de canonieke functie Meting aanroept met het opgegeven argument, dat een resultaattype Edm.Geography of Edm.Geometry moet hebben. Het resultaattype van de expressie is 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

Parameters

spatialValue
DbExpression

Een expressie die de waarde van het ruimtelijke punt aangeeft waaruit de metingwaarde (M) moet worden opgehaald.

Retouren

Een nieuwe DbFunctionExpression die de meting van spatialValue of null als spatialValue dit geen punt is, retourneert.

Uitzonderingen

spatialValue

spatialValue

Van toepassing op