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
Expand Minimize

DbSpatialServices.GetXCoordinate Method

.NET Framework 4.6 and 4.5

Returns the X coordinate of the given DbGeometry value, if it represents a point.

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

public abstract Nullable<double> GetXCoordinate(
	DbGeometry geometryValue
)

Parameters

geometryValue
Type: System.Data.Spatial.DbGeometry

The geometry value, which need not represent a point.

Return Value

Type: System.Nullable<Double>
The X coordinate of the given DbGeometry value.

ExceptionCondition
ArgumentNullException

geometryValue

ArgumentException

geometryValue

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft