Redigera

Dela via


DbSpatialServices.ElementAt Method

Definition

Returns an element of the given value.

Overloads

ElementAt(DbGeography, Int32)

Returns an element of the given DbGeography value, if it represents a geography collection.

ElementAt(DbGeometry, Int32)

Returns an element of the given DbGeometry value, if it represents a geometry collection.

ElementAt(DbGeography, Int32)

Returns an element of the given DbGeography value, if it represents a geography collection.

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

Parameters

geographyValue
DbGeography

The geography value, which need not represent a geography collection.

index
Int32

The position within the geography value from which the element should be taken.

Returns

The element in geographyValue at position index, if it represents a collection of other geography values; otherwise null.

Exceptions

geographyValue

geographyValue

Applies to

ElementAt(DbGeometry, Int32)

Returns an element of the given DbGeometry value, if it represents a geometry collection.

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

Parameters

geometryValue
DbGeometry

The geometry value, which need not represent a geometry collection.

index
Int32

The position within the geometry value from which the element should be taken.

Returns

The element in geometryValue at position index, if it represents a collection of other geometry values; otherwise null.

Exceptions

geometryValue

geometryValue

Applies to