SqlGeography.STEndPoint Method

Returns the end point of a SqlGeography instance.

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

Syntax

'Declaration
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)> _
Public Function STEndPoint As SqlGeography
'Usage
Dim instance As SqlGeography
Dim returnValue As SqlGeography

returnValue = instance.STEndPoint()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlGeography STEndPoint()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public:
SqlGeography^ STEndPoint()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
member STEndPoint : unit -> SqlGeography 
public function STEndPoint() : SqlGeography

Return Value

Type: Microsoft.SqlServer.Types.SqlGeography
A SqlGeography value containing the end point.

Remarks

STEndPoint is the equivalent of STPointN(x.STNumPoints()).

This method returns null if called on an empty geography instance.