DbSpatialServices.Difference Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Computes the difference of two values.
Overloads
Difference(DbGeography, DbGeography) |
Computes the difference of two DbGeography values. |
Difference(DbGeometry, DbGeometry) |
Computes the difference between two DbGeometry values. |
Difference(DbGeography, DbGeography)
Computes the difference of two DbGeography values.
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
Parameters
- geographyValue
- DbGeography
The first geography value.
- otherGeography
- DbGeography
The second geography value.
Returns
A new DbGeography value representing the difference of geographyValue
and otherGeography
.
Exceptions
geographyValue
otherGeography
geographyValue
otherGeography
Applies to
Difference(DbGeometry, DbGeometry)
Computes the difference between two DbGeometry values.
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
Parameters
- geometryValue
- DbGeometry
The first geometry value.
- otherGeometry
- DbGeometry
The second geometry value.
Returns
A new DbGeometry value representing the difference between geometryValue
and otherGeometry
.
Exceptions
geometryValue
otherGeometry
geometryValue
otherGeometry