DbSpatialServices.InteriorRingAt Method (DbGeometry, Int32)
Returns an interior ring from the given DbGeometry value, if it represents a polygon.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- geometryValue
-
Type:
System.Data.Entity.Spatial.DbGeometry
The geometry value, which need not represent a polygon.
- index
-
Type:
System.Int32
The position within the geometry value from which the element should be taken.
Return Value
Type: System.Data.Entity.Spatial.DbGeometryThe interior ring in geometryValue at position index, if it represents a polygon; otherwise, null.
Exception | Condition |
---|---|
ArgumentNullException | geometryValue is null. |
ArgumentException | geometryValue is not compatible with this spatial services implementation. |