DbSpatialServices.GetExteriorRing Method (DbGeometry)

 

Returns a DbGeometry value that represents the exterior ring of the given DbGeometry value, which may be null if the value does not represent a polygon.

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

public abstract DbGeometry GetExteriorRing(
	DbGeometry geometryValue
)

Parameters

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

The geometry value, which need not represent a polygon.

Return Value

Type: System.Data.Entity.Spatial.DbGeometry

A DbGeometry value representing the exterior ring on geometryValue, if it represents a polygon; otherwise, null.

Exception Condition
ArgumentNullException

geometryValue is null.

ArgumentException

geometryValue is not compatible with this spatial services implementation.