Compartir a través de


SqlGeography.ShortestLineTo Método

Returns the shortest distance between the two SqlGeographyinstances.

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 SqlGeography _
) As SqlGeography
'Uso
Dim instance As SqlGeography 
Dim other As SqlGeography 
Dim returnValue As SqlGeography 

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

Parámetros

Valor devuelto

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

Vea también

Referencia

SqlGeography Clase

Espacio de nombres Microsoft.SqlServer.Types

Otros recursos

ShortestLineTo (tipo de datos Geography)