共用方式為


DbSpatialServices.GetLatitude(DbGeography) 方法

定義

傳回指定的 DbGeography 值的緯度座標,如果它代表一個點。

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

參數

geographyValue
DbGeography

地理位置值,其不需要表現點。

傳回

指定 DbGeography 值的緯度座標。

例外狀況

geographyValue 為 null。

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

適用於