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
パラメーター
- geographyValue
型 : System.Data.Entity.Spatial.DbGeography
geography 値。ラインストリングおよび線形リングを表す必要はありません。
- index
型 : System.Int32
要素を取得する、geography 値内の位置。
戻り値
型 : System.Data.Entity.Spatial.DbGeography
値がラインストリングまたは線形リングを表している場合は、位置 index の geographyValue 内の点。それ以外の場合は null。
例外
例外 | 状態 |
---|---|
ArgumentNullException | geographyValue が null です。 |
ArgumentException | geographyValue は、この空間サービスの実装と互換性がありません。 |