語言

DbSpatialServices.SpatialEquals 方法

定義

多載

名稱 Description
SpatialEquals(DbGeography, DbGeography)

判斷兩個指定的 DbGeography 值是否在空間上相等。

SpatialEquals(DbGeometry, DbGeometry)

判斷兩個指定的 DbGeometry 值是否在空間上相等。

SpatialEquals(DbGeography, DbGeography)

判斷兩個指定的 DbGeography 值是否在空間上相等。

public abstract bool SpatialEquals(System.Data.Entity.Spatial.DbGeography geographyValue, System.Data.Entity.Spatial.DbGeography otherGeography);
abstract member SpatialEquals : System.Data.Entity.Spatial.DbGeography * System.Data.Entity.Spatial.DbGeography -> bool
Public MustOverride Function SpatialEquals (geographyValue As DbGeography, otherGeography As DbGeography) As Boolean

參數

geographyValue
DbGeography

要比較是否相等的第一個地理位置值。

otherGeography
DbGeography

要比較是否相等的第二個地理位置值。

傳回

如果 geographyValue 在空間上等於 otherGeography,則為 true;否則為 false。

例外狀況

geographyValue 或 otherGeography 為 null。

geographyValue 或 otherGeography 與這個空間服務實作不相容。

適用於

SpatialEquals(DbGeometry, DbGeometry)

判斷兩個指定的 DbGeometry 值是否在空間上相等。

public abstract bool SpatialEquals(System.Data.Entity.Spatial.DbGeometry geometryValue, System.Data.Entity.Spatial.DbGeometry otherGeometry);
abstract member SpatialEquals : System.Data.Entity.Spatial.DbGeometry * System.Data.Entity.Spatial.DbGeometry -> bool
Public MustOverride Function SpatialEquals (geometryValue As DbGeometry, otherGeometry As DbGeometry) As Boolean

參數

geometryValue
DbGeometry

要比較是否相等的第一個幾何值。

otherGeometry
DbGeometry

要比較是否相等的第二個幾何值。

傳回

如果 geometryValue 在空間上等於 otherGeometry,則為 true;否則為 false。

例外狀況

geometryValue 或 otherGeometry 為 null。

geometryValue 或 otherGeometry 與這個空間服務實作不相容。

適用於