SqlSpatialFunctions.NumRings Method (DbGeography)

 

Returns the total number of rings in a Polygon instance.

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

[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", 
	MessageId = "Num", Justification = "Naming convention prescribed by OGC specification")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "geographyValue")]
[DbFunctionAttribute("SqlServer", "NUMRINGS")]
public static Nullable<int> NumRings(
	DbGeography geographyValue
)

Parameters

geographyValue
Type: System.Data.Entity.Spatial.DbGeography

The geography value.

Return Value

Type: System.Nullable<Int32>

The total number of rings.