Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DbSpatialServices.PointAt Method (DbGeography, Int32)

.NET Framework 4.6 and 4.5

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.

ExceptionCondition
ArgumentNullException

geographyValue

ArgumentException

geographyValue

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft