Share via


SqlSpatialServices.GetLength Method

Definition

Overloads

GetLength(DbGeometry)

Returns a nullable double value that indicates the length of the given DbGeometry value, which may be null if the value does not represent a curve.

GetLength(DbGeography)

Returns a nullable double value that indicates the length of the given DbGeography value, which may be null if the value does not represent a curve.

GetLength(DbGeometry)

Returns a nullable double value that indicates the length of the given DbGeometry value, which may be null if the value does not represent a curve.

public override Nullable<double> GetLength (System.Data.Entity.Spatial.DbGeometry geometryValue);
override this.GetLength : System.Data.Entity.Spatial.DbGeometry -> Nullable<double>
Public Overrides Function GetLength (geometryValue As DbGeometry) As Nullable(Of Double)

Parameters

geometryValue
DbGeometry

The geometry value, which need not represent a curve.

Returns

The length of the given DbGeometry value.

Applies to

GetLength(DbGeography)

Returns a nullable double value that indicates the length of the given DbGeography value, which may be null if the value does not represent a curve.

public override Nullable<double> GetLength (System.Data.Entity.Spatial.DbGeography geographyValue);
override this.GetLength : System.Data.Entity.Spatial.DbGeography -> Nullable<double>
Public Overrides Function GetLength (geographyValue As DbGeography) As Nullable(Of Double)

Parameters

geographyValue
DbGeography

The geography value, which need not represent a curve.

Returns

The length of the given DbGeography value.

Applies to