次の方法で共有


DbSpatialServices.GetLongitude メソッド

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

指定した DbGeography 値がポイントを表す場合、その値の経度座標を返します。

名前空間:  System.Data.Entity.Spatial
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

'宣言
Public MustOverride Function GetLongitude ( _
    geographyValue As DbGeography _
) As Nullable(Of Double)
'使用
Dim instance As DbSpatialServices 
Dim geographyValue As DbGeography 
Dim returnValue As Nullable(Of Double)

returnValue = instance.GetLongitude(geographyValue)
public abstract Nullable<double> GetLongitude(
    DbGeography geographyValue
)
public:
virtual Nullable<double> GetLongitude(
    DbGeography^ geographyValue
) abstract
abstract GetLongitude : 
        geographyValue:DbGeography -> Nullable<float> 
public abstract function GetLongitude(
    geographyValue : DbGeography
) : Nullable<double>

パラメーター

戻り値

型 : System.Nullable<Double>
指定された DbGeography 値の経度座標。

例外

例外 状態
ArgumentNullException

geographyValue が null です。

ArgumentException

geographyValue は、この空間サービスの実装と互換性がありません。

参照

参照

DbSpatialServices クラス

System.Data.Entity.Spatial 名前空間