Share via


SqlSpatialServices.GetLongitude(DbGeography) Method

Definition

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

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

Parameters

geographyValue
DbGeography

The geography value, which need not represent a point.

Returns

The Longitude coordinate of the given DbGeography value.

Applies to