DbSpatialServices.GeographyPolygonFromBinary 方法
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
基于指定的已知二进制值和坐标系标识符 (SRID) 创建新的 DbGeography 多边形值。
命名空间: System.Data.Entity.Spatial
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
Public MustOverride Function GeographyPolygonFromBinary ( _
polygonWellKnownBinary As Byte(), _
coordinateSystemId As Integer _
) As DbGeography
用法
Dim instance As DbSpatialServices
Dim polygonWellKnownBinary As Byte()
Dim coordinateSystemId As Integer
Dim returnValue As DbGeography
returnValue = instance.GeographyPolygonFromBinary(polygonWellKnownBinary, _
coordinateSystemId)
public abstract DbGeography GeographyPolygonFromBinary(
byte[] polygonWellKnownBinary,
int coordinateSystemId
)
public:
virtual DbGeography^ GeographyPolygonFromBinary(
array<unsigned char>^ polygonWellKnownBinary,
int coordinateSystemId
) abstract
abstract GeographyPolygonFromBinary :
polygonWellKnownBinary:byte[] *
coordinateSystemId:int -> DbGeography
public abstract function GeographyPolygonFromBinary(
polygonWellKnownBinary : byte[],
coordinateSystemId : int
) : DbGeography
参数
- polygonWellKnownBinary
类型:System.Byte[]
一个字节数组,包含地理值的已知二进制表示形式。
- coordinateSystemId
类型:System.Int32
新 DbGeography 值应使用的坐标系标识符。
返回值
类型:System.Data.Entity.Spatial.DbGeography
一个新 DbGeography 值,由已知二进制值使用指定的坐标系标识符 (SRID) (DefaultCoordinateSystemId) 进行定义。