次の方法で共有


SqlGeometry.ShortestLineTo メソッド

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

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

構文

'宣言
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function ShortestLineTo ( _
    other As SqlGeometry _
) As SqlGeometry
'使用
Dim instance As SqlGeometry 
Dim other As SqlGeometry 
Dim returnValue As SqlGeometry 

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

パラメーター

戻り値

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

関連項目

参照

SqlGeometry クラス

Microsoft.SqlServer.Types 名前空間