DbSpatialServices.GetInteriorRingCount(DbGeometry) Method

Definition

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

public abstract Nullable<int> GetInteriorRingCount (System.Data.Entity.Spatial.DbGeometry geometryValue);
abstract member GetInteriorRingCount : System.Data.Entity.Spatial.DbGeometry -> Nullable<int>
Public MustOverride Function GetInteriorRingCount (geometryValue As DbGeometry) As Nullable(Of Integer)

Parameters

geometryValue
DbGeometry

The geometry value, which need not represent a polygon.

Returns

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

Exceptions

geometryValue is null.

geometryValue is not compatible with this spatial services implementation.

Applies to