SpatialEdmFunctions.SpatialDifference(DbExpression, DbExpression) Méthode

Définition

Crée un DbFunctionExpression élément qui appelle la fonction « SpatialDifference » canonique avec les arguments spécifiés, qui doivent chacun avoir un type de résultat Edm.Geography ou Edm.Geometry. Le type de résultat de spatialValue1 doit correspondre au type de résultat de spatialValue2. Le type de résultat de l’expression est identique au type de spatialValue1 et spatialValue2.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ SpatialDifference(System::Data::Common::CommandTrees::DbExpression ^ spatialValue1, System::Data::Common::CommandTrees::DbExpression ^ spatialValue2);
public static System.Data.Common.CommandTrees.DbFunctionExpression SpatialDifference(this System.Data.Common.CommandTrees.DbExpression spatialValue1, System.Data.Common.CommandTrees.DbExpression spatialValue2);
static member SpatialDifference : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function SpatialDifference (spatialValue1 As DbExpression, spatialValue2 As DbExpression) As DbFunctionExpression

Paramètres

spatialValue1
DbExpression

Expression qui spécifie la première valeur spatiale.

spatialValue2
DbExpression

Expression qui spécifie la valeur spatiale pour laquelle la différence doit spatialValue1 être calculée.

Retours

Nouvelle DbFunctionExpression qui retourne la valeur géométrique représentant la différence de spatialValue2 .spatialValue1

Exceptions

spatialValue1 spatialValue2

spatialValue1 spatialValue2

S’applique à