SqlGeography.STPointN Method (Int32)
Applies To: SQL Server 2016 Preview
Returns the specified point in a SqlGeography instance.
Assembly: Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)] public SqlGeography STPointN( int n )
If a SqlGeography instance is constructed by the system, STPointN returns the point specified by expression by ordering all the points in the same order they would be output: first by geography instance, then by ring within the instance (if appropriate), and then by point within the ring. This order is deterministic.
If this method is called with a value less than 1, it throws an ArgumentOutOfRangeException.
If this method is called with a value greater than the number of points in the instance, it returns null.