SpatialEdmFunctions.SpatialDifference(DbExpression, DbExpression) Methode

Definitie

Hiermee maakt u een DbFunctionExpression functie die de canonieke functie SpatialDifference aanroept met de opgegeven argumenten, die elk een resultaattype Edm.Geography of Edm.Geometry moeten hebben. Het resultaattype spatialValue1 moet overeenkomen met het resultaattype van spatialValue2. Het resultaattype van de expressie is hetzelfde als het type spatialValue1 en 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

Parameters

spatialValue1
DbExpression

Een expressie die de eerste ruimtelijke waarde aangeeft.

spatialValue2
DbExpression

Een expressie die de ruimtelijke waarde aangeeft waarmee het verschil spatialValue1 moet worden berekend.

Retouren

Een nieuwe DbFunctionExpression die de geometriewaarde retourneert die het verschil spatialValue2 aangeeft met spatialValue1.

Uitzonderingen

spatialValue1 spatialValue2

spatialValue1 spatialValue2

Van toepassing op