DbSpatialServices.AsBinary Method

 

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

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

NameDescription
System_CAPS_pubmethodAsBinary(DbGeography)

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

System_CAPS_pubmethodAsBinary(DbGeometry)

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


DbSpatialServices.AsBinary Method (DbGeography)

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

public abstract byte[] AsBinary(
	DbGeography geographyValue
)

Parameters

geographyValue
Type: System.Data.Entity.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 is null.

ArgumentException

geographyValue is not compatible with this spatial services implementation.


DbSpatialServices.AsBinary Method (DbGeometry)

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

public abstract byte[] AsBinary(
	DbGeometry geometryValue
)

Parameters

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

The geometry 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

geometryValue is null.

ArgumentException

geometryValue is not compatible with this spatial services implementation.