SqlSpatialServices.Difference 方法 (DbGeography, DbGeography)
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
計算兩個 DbGeography 值之間的差異。
命名空間: System.Data.Entity.SqlServer
組件: EntityFramework.SqlServer (在 EntityFramework.SqlServer.dll 中)
語法
'宣告
Public Overrides Function Difference ( _
geographyValue As DbGeography, _
otherGeography As DbGeography _
) As DbGeography
'用途
Dim instance As SqlSpatialServices
Dim geographyValue As DbGeography
Dim otherGeography As DbGeography
Dim returnValue As DbGeography
returnValue = instance.Difference(geographyValue, _
otherGeography)
public override DbGeography Difference(
DbGeography geographyValue,
DbGeography otherGeography
)
public:
virtual DbGeography^ Difference(
DbGeography^ geographyValue,
DbGeography^ otherGeography
) override
abstract Difference :
geographyValue:DbGeography *
otherGeography:DbGeography -> DbGeography
override Difference :
geographyValue:DbGeography *
otherGeography:DbGeography -> DbGeography
public override function Difference(
geographyValue : DbGeography,
otherGeography : DbGeography
) : DbGeography
參數
- geographyValue
類型:System.Data.Entity.Spatial.DbGeography
第一個地理位置值。
- otherGeography
類型:System.Data.Entity.Spatial.DbGeography
第二個地理位置值。
傳回值
類型:System.Data.Entity.Spatial.DbGeography
表示 geographyValue 與 otherGeography 之間差異的新 DbGeography 值。