DbSpatialServices.GetInteriorRingCount Method (DbGeometry)

.NET Framework (current version)
 

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

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

public abstract Nullable<int> GetInteriorRingCount(
	DbGeometry geometryValue
)

Parameters

geometryValue
Type: System.Data.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

ArgumentException

geometryValue

.NET Framework
Available since 4.5
Return to top
Show: