DbSpatialServices.GetInteriorRingCount Method (DbGeometry)

 

Returns the number of interior rings in the given DbGeometry value, if it represents a polygon.

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

public abstract Nullable<int> GetInteriorRingCount(
	DbGeometry geometryValue
)

Parameters

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

The geometry value, which need not represent a polygon.

Return Value

Type: System.Nullable<Int32>

The number of elements in geometryValue, if it represents a polygon; otherwise, null.

Exception Condition
ArgumentNullException

geometryValue is null.

ArgumentException

geometryValue is not compatible with this spatial services implementation.