SpatialEdmFunctions.Measure(DbExpression) Metod

Definition

Skapar en DbFunctionExpression som anropar den kanoniska funktionen Mått med det angivna argumentet, som måste ha resultattypen Edm.Geography eller Edm.Geometry. Resultattypen för uttrycket är 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

Parametrar

spatialValue
DbExpression

Ett uttryck som anger det rumsliga punktvärde som måttets (M) koordinatvärde ska hämtas från.

Returer

En ny DbFunctionExpression som antingen returnerar måttet för spatialValue eller null om spatialValue inte är en punkt.

Undantag

spatialValue

spatialValue

Gäller för