DbSpatialServices.GetLongitude(DbGeography) 方法

定义

如果其表示点,则返回给定 DbGeography 值的经度坐标。

public abstract Nullable<double> GetLongitude (System.Data.Entity.Spatial.DbGeography geographyValue);
abstract member GetLongitude : System.Data.Entity.Spatial.DbGeography -> Nullable<double>
Public MustOverride Function GetLongitude (geographyValue As DbGeography) As Nullable(Of Double)

参数

geographyValue
DbGeography

不需要表示点的地理值。

返回

给定的 DbGeography 值的 Y 坐标。

例外

geographyValue 为 null。

geographyValue 与此空间服务实现不兼容。

适用于