SqlGeography.RingN Method (Int32)
Applies To: SQL Server 2016 Preview
Returns the specified ring of the SqlGeography instance: 1 ≤ n ≤ NumRings().
Namespace: Microsoft.SqlServer.Types
Assembly: Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)
Syntax
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlGeography RingN(
int n
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
SqlGeography^ RingN(
int n
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
member RingN :
n:int -> SqlGeography
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)>
Public Function RingN (
n As Integer
) As SqlGeography
Parameters
n
Type: System.Int32An int expression between 1 and the number of rings in a polygon instance.
Return Value
Type: Microsoft.SqlServer.Types.SqlGeography
A SqlGeography object that represents the ring specified by n.
Remarks
If the value of the ring index n is less than 1, this method throws an ArgumentOutOfRangeException. The ring index value must be greater than or equal to 1 and should be less than or equal to the number returned by NumRings.
See Also
SqlGeography Class
Microsoft.SqlServer.Types Namespace
Return to top