次の方法で共有


DbSpatialServices.PointAt メソッド (DbGeography, Int32)

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

指定した DbGeography 値がラインストリングまたは線形リングを表す場合、そのポイント要素を返します。

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

構文

'宣言
Public MustOverride Function PointAt ( _
    geographyValue As DbGeography, _
    index As Integer _
) As DbGeography
'使用
Dim instance As DbSpatialServices 
Dim geographyValue As DbGeography 
Dim index As Integer 
Dim returnValue As DbGeography 

returnValue = instance.PointAt(geographyValue, _
    index)
public abstract DbGeography PointAt(
    DbGeography geographyValue,
    int index
)
public:
virtual DbGeography^ PointAt(
    DbGeography^ geographyValue, 
    int index
) abstract
abstract PointAt : 
        geographyValue:DbGeography * 
        index:int -> DbGeography
public abstract function PointAt(
    geographyValue : DbGeography, 
    index : int
) : DbGeography

パラメーター

  • index
    型 : System.Int32
    要素を取得する、geography 値内の位置。

戻り値

型 : System.Data.Entity.Spatial.DbGeography
値がラインストリングまたは線形リングを表している場合は、位置 index の geographyValue 内の点。それ以外の場合は null。

例外

例外 状態
ArgumentNullException

geographyValue が null です。

ArgumentException

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

参照

参照

DbSpatialServices クラス

PointAt オーバーロード

System.Data.Entity.Spatial 名前空間