DbSpatialServices.CreateWellKnownValue Method (DbGeography)

.NET Framework (current version)
 

Creates an instance of DbGeographyWellKnownValue that represents the specified DbGeography value using one or both of the standard well-known spatial formats.

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

public abstract DbGeographyWellKnownValue CreateWellKnownValue(
	DbGeography geographyValue
)

Parameters

geographyValue
Type: System.Data.Spatial.DbGeography

The geography value.

Return Value

Type: System.Data.Spatial.DbGeographyWellKnownValue

The well-known representation of geographyValue, as a new DbGeographyWellKnownValue.

Exception Condition
ArgumentNullException

geographyValue

ArgumentException

geographyValue

.NET Framework
Available since 4.5
Return to top
Show: