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
參數
- other
型別:Microsoft.SqlServer.Types.SqlGeography
The SqlGeography instance that the calling SqlGeography instance is trying to determine the shortest distance to.
傳回值
型別:Microsoft.SqlServer.Types.SqlGeography
The shortest distance between the two SqlGeography instances.
請參閱
參考
Microsoft.SqlServer.Types 命名空間