SqlGeometry.STLength-Methode
Returns the total length of the elements in a SqlGeometry instance.
Namespace: Microsoft.SqlServer.Types
Assembly: Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)
Syntax
'Declaration
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STLength As SqlDouble
'Usage
Dim instance As SqlGeometry
Dim returnValue As SqlDouble
returnValue = instance.STLength()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlDouble STLength()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
SqlDouble STLength()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STLength : unit -> SqlDouble
public function STLength() : SqlDouble
Rückgabewert
Typ: System.Data.SqlTypes.SqlDouble
A SqlDouble value that contains the total length of the elements in the calling SqlGeometry.
Hinweise
If a SqlGeometry instance is closed, its length is calculated as the total length around the instance; the length of any polygon is its perimeter and the length of a point is 0. The length of any SqlGeometry collection type is the sum of the lengths of its contained SqlGeometry instances.