Condividi tramite


Metodo SqlGeography.ShortestLineTo

Returns the shortest distance between the two SqlGeographyinstances.

Spazio dei nomi  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

Sintassi

'Dichiarazione
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function ShortestLineTo ( _
    other As SqlGeography _
) As SqlGeography
'Utilizzo
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

Parametri

Valore restituito

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

Vedere anche

Riferimento

SqlGeography Classe

Spazio dei nomi Microsoft.SqlServer.Types

Altre risorse

ShortestLineTo (tipo di dati geography)