共用方式為


SqlGeography.ShortestLineTo 方法

Returns the shortest distance between the two SqlGeographyinstances.

命名空間:  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
The shortest distance between the two SqlGeography instances.

請參閱

參考

SqlGeography 類別

Microsoft.SqlServer.Types 命名空間

其他資源

ShortestLineTo (geography 資料類型)