SqlGeography.NumRings Method ()
Applies To: SQL Server 2016 Preview
Returns the total number of rings in a Polygon instance.
Namespace: Microsoft.SqlServer.Types
Assembly: Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)
Syntax
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlInt32 NumRings()
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
SqlInt32 NumRings()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
member NumRings : unit -> SqlInt32
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)>
Public Function NumRings As SqlInt32
Return Value
Type: System.Data.SqlTypes.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.
Remarks
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.
See Also
SqlGeography Class
Microsoft.SqlServer.Types Namespace
Return to top