SpatialEdmFunctions.SpatialDifference(DbExpression, DbExpression) 메서드

정의

결과 형식이 각각 Edm.Geography 또는 Edm.Geometry여야 하는 정식 'SpatialDifference' 함수를 지정된 인수를 사용하여 호출하는 DbFunctionExpression을 만듭니다. spatialValue1의 결과 형식은 spatialValue2의 결과 형식과 일치해야 합니다. 식의 결과 형식은 spatialValue1spatialValue2의 결과 형식과 같습니다.

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

매개 변수

spatialValue1
DbExpression

첫 번째 공간 값을 지정하는 식입니다.

spatialValue2
DbExpression

spatialValue1과의 차이를 계산할 공간 값을 지정하는 식입니다.

반환

spatialValue2spatialValue1의 차이를 나타내는 geometry 값을 반환하는 새 DbFunctionExpression입니다.

예외

spatialValue1 spatialValue2

spatialValue1 spatialValue2

적용 대상