共用方式為


DbSpatialServices.AsBinary 方法

定義

多載

AsBinary(DbGeography)

取得所指 DbGeography 值的已知二進位表示。

AsBinary(DbGeometry)

取得所指 DbGeometry 值的已知二進位表示。

AsBinary(DbGeography)

取得所指 DbGeography 值的已知二進位表示。

public abstract byte[] AsBinary(System.Data.Entity.Spatial.DbGeography geographyValue);
abstract member AsBinary : System.Data.Entity.Spatial.DbGeography -> byte[]
Public MustOverride Function AsBinary (geographyValue As DbGeography) As Byte()

參數

geographyValue
DbGeography

應該針對此地理位置值產生熟知的二進位檔。

傳回

Byte[]

給定之 DbGeography 值的已知二進位表示法。

例外狀況

geographyValue 為 null。

geographyValue 與這個空間服務實作不相容。

適用於

AsBinary(DbGeometry)

取得所指 DbGeometry 值的已知二進位表示。

public abstract byte[] AsBinary(System.Data.Entity.Spatial.DbGeometry geometryValue);
abstract member AsBinary : System.Data.Entity.Spatial.DbGeometry -> byte[]
Public MustOverride Function AsBinary (geometryValue As DbGeometry) As Byte()

參數

geometryValue
DbGeometry

應該針對此幾何值產生熟知的二進位檔。

傳回

Byte[]

給定之 DbGeography 值的已知二進位表示法。

例外狀況

geometryValue 為 null。

geometryValue 與這個空間服務實作不相容。

適用於