SqlGeometry.STLength 方法 ()

 

返回 SqlGeometry 实例中的元素的总长度。

命名空间:   Microsoft.SqlServer.Types
程序集:  Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)

语法

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlDouble STLength()
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
SqlDouble STLength()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STLength : unit -> SqlDouble
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Function STLength As SqlDouble

返回值

Type: System.Data.SqlTypes.SqlDouble

一个 SqlDouble 值,该值包含调用 SqlGeometry 中的元素的总长度。

备注

如果 SqlGeometry 实例是闭合的,则其长度按围绕该实例的总长度进行计算;任何多边形的长度为其周长,点的长度为 0。 任何的长度 SqlGeometry 集合类型是它所包含的长度之和 SqlGeometry 实例。

另请参阅

SqlGeometry 类
Microsoft.SqlServer.Types 命名空间

返回页首