DbSpatialServices.InteriorRingAt Method (DbGeometry, Int32)

 

Returns an interior ring from the given DbGeometry value, if it represents a polygon.

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

public abstract DbGeometry InteriorRingAt(
	DbGeometry geometryValue,
	int index
)

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.DbGeometry

The 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.