SqlSpatialServices.ElementAt Method

 

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

Namespace:   System.Data.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

NameDescription
System_CAPS_pubmethodElementAt(DbGeography, Int32)

Returns an element of the given DbGeography value, if it represents a geography collection.(Overrides DbSpatialServices.ElementAt(DbGeography, Int32).)

System_CAPS_pubmethodElementAt(DbGeometry, Int32)

Returns an element of the given DbGeometry value, if it represents a geometry collection.(Overrides DbSpatialServices.ElementAt(DbGeometry, Int32).)


SqlSpatialServices.ElementAt Method (DbGeography, Int32)

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

public override DbGeography ElementAt(
	DbGeography geographyValue,
	int index
)

Parameters

geographyValue
Type: System.Data.Entity.Spatial.DbGeography

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

index
Type: System.Int32

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

Return Value

Type: System.Data.Entity.Spatial.DbGeography

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


SqlSpatialServices.ElementAt Method (DbGeometry, Int32)

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

public override DbGeometry ElementAt(
	DbGeometry geometryValue,
	int index
)

Parameters

geometryValue
Type: System.Data.Entity.Spatial.DbGeometry

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

index
Type: System.Int32

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

Return Value

Type: System.Data.Entity.Spatial.DbGeometry

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