SpatialEdmFunctions.SpatialLength(DbExpression) Metod

Definition

Skapar en DbFunctionExpression som anropar den kanoniska funktionen SpatialLength med det angivna argumentet, som måste ha resultattypen Edm.Geography eller Edm.Geometry. Resultattypen för uttrycket är 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

Parametrar

spatialValue
DbExpression

Ett uttryck som anger värdet för den rumsliga kurva som längden ska hämtas från.

Returer

En ny DbFunctionExpression som antingen returnerar längden på spatialValue eller null om spatialValue inte är en kurva.

Undantag

spatialValue

spatialValue

Gäller för