DbSpatialServices.GetLength Method
Gets the length of a given value.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | 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. |
DbSpatialServices.GetLength Method (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.
Parameters
- geographyValue
-
Type:
System.Data.Entity.Spatial.DbGeography
The geography value, which need not represent a curve.
Exception | Condition |
---|---|
ArgumentNullException | geographyValue is null. |
ArgumentException | geographyValue is not compatible with this spatial services implementation. |
DbSpatialServices.GetLength Method (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.
Parameters
- geometryValue
-
Type:
System.Data.Entity.Spatial.DbGeometry
The geometry value, which need not represent a curve.
Exception | Condition |
---|---|
ArgumentNullException | geometryValue is null. |
ArgumentException | geometryValue is not compatible with this spatial services implementation. |