Edit

Share via


DbSpatialServices.AsBinary Method

Definition

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

Overloads

AsBinary(DbGeography)

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

AsBinary(DbGeometry)

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

AsBinary(DbGeography)

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

public:
 abstract cli::array <System::Byte> ^ AsBinary(System::Data::Spatial::DbGeography ^ geographyValue);
public abstract byte[] AsBinary (System.Data.Spatial.DbGeography geographyValue);
abstract member AsBinary : System.Data.Spatial.DbGeography -> byte[]
Public MustOverride Function AsBinary (geographyValue As DbGeography) As Byte()

Parameters

geographyValue
DbGeography

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

Returns

Byte[]

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

Exceptions

geographyValue

geographyValue

Applies to

AsBinary(DbGeometry)

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

public:
 abstract cli::array <System::Byte> ^ AsBinary(System::Data::Spatial::DbGeometry ^ geometryValue);
public abstract byte[] AsBinary (System.Data.Spatial.DbGeometry geometryValue);
abstract member AsBinary : System.Data.Spatial.DbGeometry -> byte[]
Public MustOverride Function AsBinary (geometryValue As DbGeometry) As Byte()

Parameters

geometryValue
DbGeometry

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

Returns

Byte[]

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

Exceptions

geometryValue

geometryValue

Applies to