DbSpatialServices.GetLongitude Method (DbGeography)

 

Returns the longitude coordinate of the given DbGeography value, if it represents a point.

Namespace:   System.Data.Entity.Spatial
Assembly:  EntityFramework (in EntityFramework.dll)

public abstract Nullable<double> GetLongitude(
	DbGeography geographyValue
)

Parameters

geographyValue
Type: System.Data.Entity.Spatial.DbGeography

The geography value, which need not represent a point.

Return Value

Type: System.Nullable<Double>

The longitude coordinate of the given DbGeography value.

Exception Condition
ArgumentNullException

geographyValue is null.

ArgumentException

geographyValue is not compatible with this spatial services implementation.