SpatialEdmFunctions.SpatialElementCount(DbExpression) Metódus

Definíció

Létrehoz egy olyan függvényt DbFunctionExpression , amely meghívja a megadott argumentummal rendelkező"SpatialElementCount" függvényt, amelynek Edm.Geography vagy Edm.Geometry eredménytípussal kell rendelkeznie. A kifejezés eredménytípusa: Edm.Int32.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ SpatialElementCount(System::Data::Common::CommandTrees::DbExpression ^ spatialValue);
public static System.Data.Common.CommandTrees.DbFunctionExpression SpatialElementCount(this System.Data.Common.CommandTrees.DbExpression spatialValue);
static member SpatialElementCount : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function SpatialElementCount (spatialValue As DbExpression) As DbFunctionExpression

Paraméterek

spatialValue
DbExpression

Olyan kifejezés, amely megadja azt a földrajzi vagy geometriai gyűjteményértéket, amelyből az elemek számát le kell kérni.

Válaszok

Egy új DbFunctionExpression, amely vagy a gyűjtemény elemeinek spatialValue számát adja vissza, vagy null ha spatialValue nem gyűjtemény.

Kivételek

spatialValue

spatialValue

A következőre érvényes: