Compartir a través de


SqlGeometry.ShortestLineTo Método

Returns the shortest distance between the two SqlGeometryinstances.

Espacio de nombres:  Microsoft.SqlServer.Types
Ensamblado:  Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)

Sintaxis

'Declaración
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function ShortestLineTo ( _
    other As SqlGeometry _
) As SqlGeometry
'Uso
Dim instance As SqlGeometry 
Dim other As SqlGeometry 
Dim returnValue As SqlGeometry 

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

Parámetros

Valor devuelto

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

Vea también

Referencia

SqlGeometry Clase

Espacio de nombres Microsoft.SqlServer.Types