DbSpatialServices.PointAt Method (DbGeography, Int32)

.NET Framework (current version)
 

Returns a point element of the given DbGeography value, if it represents a linestring or linear ring.

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

public abstract DbGeography PointAt(
	DbGeography geographyValue,
	int index
)

Parameters

geographyValue
Type: System.Data.Spatial.DbGeography

The geography value, which need not represent a linestring or linear ring.

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 point in geographyValue at position index, if it represents a linestring or linear ring; otherwise null.

Exception Condition
ArgumentNullException

geographyValue

ArgumentException

geographyValue

.NET Framework
Available since 4.5
Return to top
Show: