Share via


SqlGeometry.STEndPoint Method

Returns the end point of a SqlGeometry 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 SqlGeometry
'Usage
Dim instance As SqlGeometry
Dim returnValue As SqlGeometry

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

Return Value

Type: Microsoft.SqlServer.Types.SqlGeometry
A SqlGeometry object that represents the endpoint of the calling SqlGeometry.

Remarks

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

This method returns nulla null reference (Nothing in Visual Basic) if called on an empty SqlGeometry instance.

See Also

Reference

SqlGeometry Class

Microsoft.SqlServer.Types Namespace