SpatialEdmFunctions.Measure(DbExpression) Metoda

Definicja

Tworzy obiekt DbFunctionExpression , który wywołuje funkcję kanoniczną "Measure" z określonym argumentem, który musi mieć typ wyniku Edm.Geography lub Edm.Geometry. Typ wyniku wyrażenia to 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

Wyrażenie określające wartość punktu przestrzennego, z którego ma zostać pobrana wartość współrzędna miary (M).

Zwraca

Nowa funkcja DbFunctionExpression, która zwraca wartość Miara spatialValue lub null jeśli spatialValue nie jest punktem.

Wyjątki

spatialValue

spatialValue

Dotyczy