DbSpatialServices.Contains(DbGeometry, DbGeometry) 方法

定义

确定一个值在空间上是否包含另一个 DbGeometry 值。

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

参数

geometryValue
DbGeometry

第一个几何图形值。

otherGeometry
DbGeometry

第二个几何图形值。

返回

true如果包含 ,则为 geometryValue;否则为 otherGeometryfalse

例外

geometryValue otherGeometry

geometryValue otherGeometry

适用于