Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
NumRings Method
Collapse the table of content
Expand the table of content

SqlGeography.NumRings Method

Returns the total number of rings in a Polygon instance.

Namespace:  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

public function NumRings() : SqlInt32

Return Value

Type: SqlInt32
A SqlInt32 value specifying the total number of rings. This method will return NULL if this is not a Polygon instance and will return 0 if the instance is empty.

In the SQL Server geography type, external and internal rings are not distinguished, as any ring can be taken to be the external ring.

This method is precise.

Community Additions

ADD
Show:
© 2015 Microsoft