Méthode SqlGeography.ShortestLineTo
Returns the shortest distance between the two SqlGeographyinstances.
Espace de noms : Microsoft.SqlServer.Types
Assembly : Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)
Syntaxe
'Déclaration
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function ShortestLineTo ( _
other As SqlGeography _
) As SqlGeography
'Utilisation
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
Paramètres
- other
Type : Microsoft.SqlServer.Types.SqlGeography
The SqlGeography instance that the calling SqlGeography instance is trying to determine the shortest distance to.
Valeur de retour
Type : Microsoft.SqlServer.Types.SqlGeography
The shortest distance between the two SqlGeography instances.
Voir aussi
Référence
Espace de noms Microsoft.SqlServer.Types