Partilhar via


Método SqlGeography.ShortestLineTo

Returns the shortest distance between the two SqlGeographyinstances.

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

Sintaxe

'Declaração
<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 de retorno

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

Consulte também

Referência

SqlGeography Classe

Namespace Microsoft.SqlServer.Types

Outros recursos

ShortestLineTo (tipo de dados geography)