DbSpatialServices.AsText Method (DbGeometry)

.NET Framework (current version)
 

Gets the well-known text representation of the given DbGeometry value, including only X and Y coordinates for points.

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

public abstract string AsText(
	DbGeometry geometryValue
)

Parameters

geometryValue
Type: System.Data.Spatial.DbGeometry

The geometry value for which the well-known text should be generated.

Return Value

Type: System.String

A string containing the well-known text representation of geometryValue.

Exception Condition
ArgumentNullException

geometryValue

ArgumentException

geometryValue

.NET Framework
Available since 4.5
Return to top
Show: