SpatialEdmFunctions.SpatialLength(DbExpression) Méthode

Définition

Crée un DbFunctionExpression élément qui appelle la fonction « SpatialLength » canonique avec l’argument spécifié, qui doit avoir un type de résultat Edm.Geography ou Edm.Geometry. Le type de résultat de l’expression est 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ètres

spatialValue
DbExpression

Expression qui spécifie la valeur de la courbe spatiale à partir de laquelle la longueur doit être récupérée.

Retours

Nouvelle DbFunctionExpression qui retourne la longueur ou spatialValuenull s’il spatialValue ne s’agit pas d’une courbe.

Exceptions

spatialValue

spatialValue

S’applique à