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