DbSpatialServices.Contains(DbGeometry, DbGeometry) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷一個 DbGeometry 值是否在空間上包含其他幾何。
public abstract bool Contains(System.Data.Entity.Spatial.DbGeometry geometryValue, System.Data.Entity.Spatial.DbGeometry otherGeometry);
abstract member Contains : System.Data.Entity.Spatial.DbGeometry * System.Data.Entity.Spatial.DbGeometry -> bool
Public MustOverride Function Contains (geometryValue As DbGeometry, otherGeometry As DbGeometry) As Boolean
參數
- geometryValue
- DbGeometry
第一個幾何值。
- otherGeometry
- DbGeometry
第二個幾何值。
傳回
如果 geometryValue 包含 otherGeometry,則為 true;否則為 false。
例外狀況
geometryValue 或
otherGeometry 為 null。
geometryValue 或
otherGeometry 與這個空間服務實作不相容。