DbGeometry.Contains(DbGeometry) 方法

定义

确定此 DbGeography 是否包含指定的 DbGeography 论据。Determines whether this DbGeometry value spatially contains the specified DbGeometry argument.

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

参数

other
DbGeometry

应与该几何图形值比较包含的几何图形值。The geometry value that should be compared with this geometry value for containment.

返回

Boolean

如果此几何值包含 other,则为 true;否则为 falsetrue if this geometry value contains other; otherwise false.

例外

适用于