DbSpatialServices.GetYCoordinate Method (DbGeometry)

 

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

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

public abstract Nullable<double> GetYCoordinate(
	DbGeometry geometryValue
)

Parameters

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

The geometry value, which need not represent a point.

Return Value

Type: System.Nullable<Double>

The Y coordinate of the given DbGeometry value.

Exception Condition
ArgumentNullException

geometryValue is null.

ArgumentException

geometryValue is not compatible with this spatial services implementation.