Muokkaa

Jaa


DbGeography.FromBinary Method

Definition

Creates a new DbGeography value based on the specified well known binary value.

Overloads

FromBinary(Byte[])

Creates a new DbGeography value based on the specified well known binary value.

FromBinary(Byte[], Int32)

Creates a new DbGeography value based on the specified well known binary value and coordinate system identifier (SRID).

FromBinary(Byte[])

Creates a new DbGeography value based on the specified well known binary value.

public:
 static System::Data::Spatial::DbGeography ^ FromBinary(cli::array <System::Byte> ^ wellKnownBinary);
public static System.Data.Spatial.DbGeography FromBinary (byte[] wellKnownBinary);
static member FromBinary : byte[] -> System.Data.Spatial.DbGeography
Public Shared Function FromBinary (wellKnownBinary As Byte()) As DbGeography

Parameters

wellKnownBinary
Byte[]

A byte array that contains a well known binary representation of the geography value.

Returns

A new DbGeography value as defined by the well known binary value with the default geography coordinate system identifier (SRID)(DefaultCoordinateSystemId).

Exceptions

wellKnownBinary

Applies to

FromBinary(Byte[], Int32)

Creates a new DbGeography value based on the specified well known binary value and coordinate system identifier (SRID).

public:
 static System::Data::Spatial::DbGeography ^ FromBinary(cli::array <System::Byte> ^ wellKnownBinary, int coordinateSystemId);
public static System.Data.Spatial.DbGeography FromBinary (byte[] wellKnownBinary, int coordinateSystemId);
static member FromBinary : byte[] * int -> System.Data.Spatial.DbGeography
Public Shared Function FromBinary (wellKnownBinary As Byte(), coordinateSystemId As Integer) As DbGeography

Parameters

wellKnownBinary
Byte[]

A byte array that contains a well known binary representation of the geography value.

coordinateSystemId
Int32

The identifier of the coordinate system that the new DbGeography value should use.

Returns

A new DbGeography value as defined by the well known binary value with the specified coordinate system identifier.

Exceptions

wellKnownBinary

coordinateSystemId

Applies to