SpatialEdmFunctions.SpatialLength(DbExpression) Metódus

Definíció

Létrehoz egy olyan függvényt DbFunctionExpression , amely meghívja a megadott argumentummal a "SpatialLength" canonical függvényt, 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 ^ SpatialLength(System::Data::Common::CommandTrees::DbExpression ^ spatialValue);
public static System.Data.Common.CommandTrees.DbFunctionExpression SpatialLength(this System.Data.Common.CommandTrees.DbExpression spatialValue);
static member SpatialLength : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function SpatialLength (spatialValue As DbExpression) As DbFunctionExpression

Paraméterek

spatialValue
DbExpression

Egy kifejezés, amely megadja azt a térbeli görbeértéket, amelyből le kell kérni a hosszt.

Válaszok

Egy új DbFunctionExpression, amely a hosszt spatialValue adja vissza, vagy null ha spatialValue nem görbe.

Kivételek

spatialValue

spatialValue

A következőre érvényes: