Udostępnij za pośrednictwem


DbSpatialServices.ElementAt Metoda

Definicja

Przeciążenia

ElementAt(DbGeography, Int32)

Zwraca element danej DbGeography wartości, jeśli reprezentuje kolekcję geografii.

ElementAt(DbGeometry, Int32)

Zwraca element danej DbGeometry wartości, jeśli reprezentuje kolekcję geometrii.

ElementAt(DbGeography, Int32)

Zwraca element danej DbGeography wartości, jeśli reprezentuje kolekcję geografii.

public abstract System.Data.Entity.Spatial.DbGeography ElementAt (System.Data.Entity.Spatial.DbGeography geographyValue, int index);
abstract member ElementAt : System.Data.Entity.Spatial.DbGeography * int -> System.Data.Entity.Spatial.DbGeography
Public MustOverride Function ElementAt (geographyValue As DbGeography, index As Integer) As DbGeography

Parametry

geographyValue
DbGeography

Wartość geografii, która nie musi reprezentować kolekcji geograficznej.

index
Int32

Pozycja w wartości geograficznej, z której ma zostać wykonany element.

Zwraca

Element w lokalizacji geographyValue w indeksie pozycji, jeśli reprezentuje kolekcję innych wartości geograficznych; w przeciwnym razie wartość null.

Wyjątki

geographyValue ma wartość null.

geographyValue nie jest zgodna z tą implementacją usług przestrzennych.

Dotyczy

ElementAt(DbGeometry, Int32)

Zwraca element danej DbGeometry wartości, jeśli reprezentuje kolekcję geometrii.

public abstract System.Data.Entity.Spatial.DbGeometry ElementAt (System.Data.Entity.Spatial.DbGeometry geometryValue, int index);
abstract member ElementAt : System.Data.Entity.Spatial.DbGeometry * int -> System.Data.Entity.Spatial.DbGeometry
Public MustOverride Function ElementAt (geometryValue As DbGeometry, index As Integer) As DbGeometry

Parametry

geometryValue
DbGeometry

Wartość geometryczna, która nie musi reprezentować kolekcji geometrii.

index
Int32

Położenie w wartości geometrycznej, z której ma zostać wykonany element.

Zwraca

Element w pliku geometryValue w indeksie pozycji, jeśli reprezentuje kolekcję innych wartości geometrycznych; w przeciwnym razie wartość null.

Wyjątki

geometryValue ma wartość null.

geometryValue nie jest zgodna z tą implementacją usług przestrzennych.

Dotyczy