DbSpatialServices.ElementAt メソッド (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 ElementAt ( _
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.ElementAt(geographyValue, _
index)
public abstract DbGeography ElementAt(
DbGeography geographyValue,
int index
)
public:
virtual DbGeography^ ElementAt(
DbGeography^ geographyValue,
int index
) abstract
abstract ElementAt :
geographyValue:DbGeography *
index:int -> DbGeography
public abstract function ElementAt(
geographyValue : DbGeography,
index : int
) : DbGeography
パラメーター
- geographyValue
型 : System.Data.Entity.Spatial.DbGeography
geography 値。地理コレクションを表す必要はありません。
- index
型 : System.Int32
要素を取得する、geography 値内の位置。
戻り値
型 : System.Data.Entity.Spatial.DbGeography
他の geography 値を表す場合は位置 index での geographyValue 内の要素。それ以外の場合は null。
例外
例外 | 状態 |
---|---|
ArgumentNullException | geographyValue が null です。 |
ArgumentException | geographyValue は、この空間サービスの実装と互換性がありません。 |