SpatialEdmFunctions.Area(DbExpression) Metoda

Definicja

Tworzy obiekt DbFunctionExpression , który wywołuje kanoniczną funkcję "Area" 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 ^ Area(System::Data::Common::CommandTrees::DbExpression ^ spatialValue);
public static System.Data.Common.CommandTrees.DbFunctionExpression Area (this System.Data.Common.CommandTrees.DbExpression spatialValue);
static member Area : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Area (spatialValue As DbExpression) As DbFunctionExpression

Parametry

spatialValue
DbExpression

Wyrażenie określające wartość powierzchni przestrzennej, dla której ma zostać obliczony obszar.

Zwraca

Nowa funkcja DbFunctionExpression, która zwraca obszar spatialValue elementu lub null , jeśli spatialValue nie jest powierzchnią.

Wyjątki

spatialValue

spatialValue

Dotyczy