SpatialEdmFunctions.SpatialDifference(DbExpression, DbExpression) Método

Definición

Crea un DbFunctionExpression objeto que invoca la función 'SpatialDifference' canónica con los argumentos especificados, que deben tener cada uno un tipo de resultado Edm.Geography o Edm.Geometry. El tipo de resultado de spatialValue1 debe coincidir con el tipo de resultado de spatialValue2. El tipo de resultado de la expresión es el mismo que el tipo de spatialValue1 y 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

Parámetros

spatialValue1
DbExpression

Expresión que especifica el primer valor espacial.

spatialValue2
DbExpression

Expresión que especifica el valor espacial para el que se debe calcular la diferencia con spatialValue1 .

Devoluciones

Nuevo DbFunctionExpression que devuelve el valor geometry que representa la diferencia de spatialValue2 con spatialValue1.

Excepciones

spatialValue1 spatialValue2

spatialValue1 spatialValue2

Se aplica a