Udostępnij za pośrednictwem


DbSpatialServices.ElementAt Metoda

Definicja

Zwraca element danej wartości.

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::Spatial::DbGeography ^ ElementAt(System::Data::Spatial::DbGeography ^ geographyValue, int index);
public abstract System.Data.Spatial.DbGeography ElementAt (System.Data.Spatial.DbGeography geographyValue, int index);
abstract member ElementAt : System.Data.Spatial.DbGeography * int -> System.Data.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 geographyValue pozycji index, jeśli reprezentuje kolekcję innych wartości geograficznych; w przeciwnym razie null.

Wyjątki

geographyValue

geographyValue

Dotyczy

ElementAt(DbGeometry, Int32)

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

public:
 abstract System::Data::Spatial::DbGeometry ^ ElementAt(System::Data::Spatial::DbGeometry ^ geometryValue, int index);
public abstract System.Data.Spatial.DbGeometry ElementAt (System.Data.Spatial.DbGeometry geometryValue, int index);
abstract member ElementAt : System.Data.Spatial.DbGeometry * int -> System.Data.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 geometryValue pozycji index, jeśli reprezentuje kolekcję innych wartości geometrycznych; w przeciwnym razie null.

Wyjątki

geometryValue

geometryValue

Dotyczy