Export (0) Print
Expand All

DbSpatialServices.ElementAt Method (DbGeography, Int32)

.NET Framework 4.6 and 4.5

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

Namespace:  System.Data.Spatial
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public abstract DbGeography ElementAt(
	DbGeography geographyValue,
	int index
)

Parameters

geographyValue
Type: System.Data.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.Spatial.DbGeography
The element in geographyValue at position index, if it represents a collection of other geography values; otherwise null.

ExceptionCondition
ArgumentNullException

geographyValue

ArgumentException

geographyValue

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft