共用方式為


SqlGeometry.ShortestLineTo 方法

Returns the shortest distance between the two SqlGeometryinstances.

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

請參閱

參考

SqlGeometry 類別

Microsoft.SqlServer.Types 命名空間