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