共用方式為


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 值的經度座標。

例外狀況

geographyValue 為 null。

geographyValue 與這個空間服務實作不相容。

適用於