Export (0) Print
Expand All
Expand Minimize

SqlGeometry.ShortestLineTo Method

Returns the shortest distance between the two SqlGeometryinstances.

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

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlGeometry ShortestLineTo(
	SqlGeometry other
)

Parameters

other
Type: Microsoft.SqlServer.Types.SqlGeometry
The SqlGeometry instance that the calling SqlGeometry instance is trying to determine the shortest distance to.

Return Value

Type: Microsoft.SqlServer.Types.SqlGeometry
The shortest distance between the two SqlGeometry instances.

Community Additions

ADD
Show:
© 2015 Microsoft