次の方法で共有


SqlGeography.ShortestLineTo メソッド

2 つの SqlGeography インスタンスの間の最短距離を返します。

名前空間:  Microsoft.SqlServer.Types
アセンブリ:  Microsoft.SqlServer.Types (Microsoft.SqlServer.Types.dll)

構文

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

パラメーター

戻り値

型: Microsoft.SqlServer.Types.SqlGeography
2 つの SqlGeography インスタンスの間の最短距離です。

関連項目

参照

SqlGeography クラス

Microsoft.SqlServer.Types 名前空間

その他の技術情報

ShortestLineTo (geography データ型)