SqlSpatialServices.GeographyFromBinary 方法 (Byte[])
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
根據指定的已知二進位值,建立新的 DbGeography 值。
命名空間: System.Data.Entity.SqlServer
組件: EntityFramework.SqlServer (在 EntityFramework.SqlServer.dll 中)
語法
'宣告
Public Overrides Function GeographyFromBinary ( _
wellKnownBinary As Byte() _
) As DbGeography
'用途
Dim instance As SqlSpatialServices
Dim wellKnownBinary As Byte()
Dim returnValue As DbGeography
returnValue = instance.GeographyFromBinary(wellKnownBinary)
public override DbGeography GeographyFromBinary(
byte[] wellKnownBinary
)
public:
virtual DbGeography^ GeographyFromBinary(
array<unsigned char>^ wellKnownBinary
) override
abstract GeographyFromBinary :
wellKnownBinary:byte[] -> DbGeography
override GeographyFromBinary :
wellKnownBinary:byte[] -> DbGeography
public override function GeographyFromBinary(
wellKnownBinary : byte[]
) : DbGeography
參數
- wellKnownBinary
類型:System.Byte[]
包含地理位置值的已知二進位表示法的位元組陣列。
傳回值
類型:System.Data.Entity.Spatial.DbGeography
新的 DbGeography 值,由具有預設 DbGeography 座標系統識別項 (SRID) (DefaultCoordinateSystemId) 的已知二進位值所定義。