DbSpatialServices.AsBinary Method (DbGeography)

.NET Framework (current version)
 

Gets the well-known binary representation of the given DbGeography value.

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

public abstract byte[] AsBinary(
	DbGeography geographyValue
)

Parameters

geographyValue
Type: System.Data.Spatial.DbGeography

The geography value for which the well-known binary should be generated.

Return Value

Type: System.Byte[]

The well-known binary representation of the given DbGeography value.

Exception Condition
ArgumentNullException

geographyValue

ArgumentException

geographyValue

.NET Framework
Available since 4.5
Return to top
Show: