DbGeometry.Contains Method (DbGeometry)

 

Determines whether this DbGeometry value spatially contains the specified DbGeometry argument.

Namespace:   System.Data.Entity.Spatial
Assembly:  EntityFramework (in EntityFramework.dll)

public bool Contains(
	DbGeometry other
)

Parameters

other
Type: System.Data.Entity.Spatial.DbGeometry

The geometry value that should be compared with this geometry value for containment.

Return Value

Type: System.Boolean

true if this geometry value contains other; otherwise, false.

Exception Condition
ArgumentNullException

other is null.