次の方法で共有


DbSpatialServices.SpatialEquals メソッド (DbGeography, DbGeography)

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

2 つの指定した DbGeography 値が空間的に等しいかどうかを判断します。

名前空間:  System.Data.Entity.Spatial
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

'宣言
Public MustOverride Function SpatialEquals ( _
    geographyValue As DbGeography, _
    otherGeography As DbGeography _
) As Boolean
'使用
Dim instance As DbSpatialServices 
Dim geographyValue As DbGeography 
Dim otherGeography As DbGeography 
Dim returnValue As Boolean 

returnValue = instance.SpatialEquals(geographyValue, _
    otherGeography)
public abstract bool SpatialEquals(
    DbGeography geographyValue,
    DbGeography otherGeography
)
public:
virtual bool SpatialEquals(
    DbGeography^ geographyValue, 
    DbGeography^ otherGeography
) abstract
abstract SpatialEquals : 
        geographyValue:DbGeography * 
        otherGeography:DbGeography -> bool
public abstract function SpatialEquals(
    geographyValue : DbGeography, 
    otherGeography : DbGeography
) : boolean

パラメーター

戻り値

型 : System.Boolean
geographyValue が otherGeography と空間的に等しい場合は true。それ以外の場合は false。

例外

例外 状態
ArgumentNullException

geographyValue または otherGeography が null です。

ArgumentException

geographyValue または otherGeography は、この空間サービスの実装と互換性がありません。

参照

参照

DbSpatialServices クラス

SpatialEquals オーバーロード

System.Data.Entity.Spatial 名前空間