SpatialEdmFunctions.Area(DbExpression) Metódus

Definíció

Létrehoz egy olyan függvényt DbFunctionExpression , amely meghívja a canonical "Area" függvényt a megadott argumentummal, amelynek Edm.Geography vagy Edm.Geometry eredménytípussal kell rendelkeznie. A kifejezés eredménytípusa 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

Paraméterek

spatialValue
DbExpression

Egy kifejezés, amely megadja azt a térbeli felületi értéket, amelyre a területet ki kell számítani.

Válaszok

Egy új DbFunctionExpression, amely visszaadja a terület vagy spatialValuenull ha spatialValue nem egy felület.

Kivételek

spatialValue

spatialValue

A következőre érvényes: