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 命名空间