DbSpatialServices.GeographyFromBinary 方法

定义

创建基于指定已知二进制值的新 DbGeography 值。

重载

GeographyFromBinary(Byte[], Int32)

创建基于指定已知二进制值和坐标系统标识符 (SRID) 的新 DbGeography 值。

GeographyFromBinary(Byte[])

创建基于指定已知二进制值的新 DbGeography 值。

GeographyFromBinary(Byte[], Int32)

创建基于指定已知二进制值和坐标系统标识符 (SRID) 的新 DbGeography 值。

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

参数

wellKnownBinary
Byte[]

包含地理值的知名二进制表示形式的字节数组。

coordinateSystemId
Int32

新建 DbGeography 值应使用的坐标系的标识符。

返回

通过指定坐标系统标识符 (SRID) 由知名二进制值定义的新的 DbGeographyDefaultCoordinateSystemId

例外

wellKnownBinary

coordinateSystemId

适用于

GeographyFromBinary(Byte[])

创建基于指定已知二进制值的新 DbGeography 值。

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

参数

wellKnownBinary
Byte[]

包含地理值的知名二进制表示形式的字节数组。

返回

通过默认的 DbGeography 坐标系统标识符 (SRID),由知名二进制值定义的新的 DbGeographyDefaultCoordinateSystemId

例外

wellKnownBinary

适用于