DbSpatialServices.GeographyFromBinary Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new DbGeography value based on the specified well-known binary value.
Overloads
GeographyFromBinary(Byte[], Int32) |
Creates a new DbGeography value based on the specified well-known binary value and coordinate system identifier (SRID). |
GeographyFromBinary(Byte[]) |
Creates a new DbGeography value based on the specified well-known binary value. |
GeographyFromBinary(Byte[], Int32)
Creates a new DbGeography value based on the specified well-known binary value and coordinate system identifier (SRID).
public:
abstract System::Data::Spatial::DbGeography ^ GeographyFromBinary(cli::array <System::Byte> ^ wellKnownBinary, int coordinateSystemId);
public abstract System.Data.Spatial.DbGeography GeographyFromBinary (byte[] wellKnownBinary, int coordinateSystemId);
abstract member GeographyFromBinary : byte[] * int -> System.Data.Spatial.DbGeography
Public MustOverride Function GeographyFromBinary (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 (SRID) (DefaultCoordinateSystemId).
Exceptions
wellKnownBinary
coordinateSystemId
Applies to
GeographyFromBinary(Byte[])
Creates a new DbGeography value based on the specified well-known binary value.
public:
abstract System::Data::Spatial::DbGeography ^ GeographyFromBinary(cli::array <System::Byte> ^ wellKnownBinary);
public abstract System.Data.Spatial.DbGeography GeographyFromBinary (byte[] wellKnownBinary);
abstract member GeographyFromBinary : byte[] -> System.Data.Spatial.DbGeography
Public MustOverride Function GeographyFromBinary (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 DbGeography coordinate system identifier (SRID) (DefaultCoordinateSystemId).
Exceptions
wellKnownBinary