DbSpatialServices.Difference 方法

定义

计算两个值的差异。

重载

Difference(DbGeography, DbGeography)

计算两个 DbGeography 值的差异。

Difference(DbGeometry, DbGeometry)

计算两个 DbGeometry 值之间的差异。

Difference(DbGeography, DbGeography)

计算两个 DbGeography 值的差异。

public:
 abstract System::Data::Spatial::DbGeography ^ Difference(System::Data::Spatial::DbGeography ^ geographyValue, System::Data::Spatial::DbGeography ^ otherGeography);
public abstract System.Data.Spatial.DbGeography Difference (System.Data.Spatial.DbGeography geographyValue, System.Data.Spatial.DbGeography otherGeography);
abstract member Difference : System.Data.Spatial.DbGeography * System.Data.Spatial.DbGeography -> System.Data.Spatial.DbGeography
Public MustOverride Function Difference (geographyValue As DbGeography, otherGeography As DbGeography) As DbGeography

参数

geographyValue
DbGeography

第一个地理值。

otherGeography
DbGeography

第二个地理值。

返回

一个新的 DbGeography 值,它代表 geographyValueotherGeography 的差异。

例外

geographyValue otherGeography

geographyValue otherGeography

适用于

Difference(DbGeometry, DbGeometry)

计算两个 DbGeometry 值之间的差异。

public:
 abstract System::Data::Spatial::DbGeometry ^ Difference(System::Data::Spatial::DbGeometry ^ geometryValue, System::Data::Spatial::DbGeometry ^ otherGeometry);
public abstract System.Data.Spatial.DbGeometry Difference (System.Data.Spatial.DbGeometry geometryValue, System.Data.Spatial.DbGeometry otherGeometry);
abstract member Difference : System.Data.Spatial.DbGeometry * System.Data.Spatial.DbGeometry -> System.Data.Spatial.DbGeometry
Public MustOverride Function Difference (geometryValue As DbGeometry, otherGeometry As DbGeometry) As DbGeometry

参数

geometryValue
DbGeometry

第一个几何图形值。

otherGeometry
DbGeometry

第二个几何图形值。

返回

一个新的 DbGeometry 值,它代表 geometryValueotherGeometry 之间的差异。

例外

geometryValue otherGeometry

geometryValue otherGeometry

适用于