DbGeography.SpatialEquals(DbGeography) 方法

定义

确定此 DbGeography 是否和其指定的 DbGeography 论据在空间相等。Determines whether this DbGeography is spatially equal to the specified DbGeography argument.

public:
 bool SpatialEquals(System::Data::Spatial::DbGeography ^ other);
public bool SpatialEquals (System.Data.Spatial.DbGeography other);
member this.SpatialEquals : System.Data.Spatial.DbGeography -> bool
Public Function SpatialEquals (other As DbGeography) As Boolean

参数

other
DbGeography

应与该地理值比较等价性的地理值。The geography value that should be compared with this geography value for equality.

返回

Boolean

如果 other 在空间上等于此地理值,则为 true;否则为 falsetrue if other is spatially equal to this geography value; otherwise false.

例外

适用于