共用方式為


DbSpatialServices.GetArea 方法

定義

多載

GetArea(DbGeography)

傳回可為 null 的雙精度浮點數值,指出指定的 DbGeography 值的範圍,如果值不能代表介面,就可能為 null。

GetArea(DbGeometry)

傳回可為 null 的雙精度浮點數值,指出指定的 DbGeometry 值的範圍,如果值不能代表介面,就可能為 null。

GetArea(DbGeography)

傳回可為 null 的雙精度浮點數值,指出指定的 DbGeography 值的範圍,如果值不能代表介面,就可能為 null。

public abstract Nullable<double> GetArea(System.Data.Entity.Spatial.DbGeography geographyValue);
abstract member GetArea : System.Data.Entity.Spatial.DbGeography -> Nullable<double>
Public MustOverride Function GetArea (geographyValue As DbGeography) As Nullable(Of Double)

參數

geographyValue
DbGeography

地理位置值,不需要代表表面。

傳回

表示指定 DbGeography 值之面積的可為 Null 的雙精度值。

例外狀況

geographyValue 為 null。

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

適用於

GetArea(DbGeometry)

傳回可為 null 的雙精度浮點數值,指出指定的 DbGeometry 值的範圍,如果值不能代表介面,就可能為 null。

public abstract Nullable<double> GetArea(System.Data.Entity.Spatial.DbGeometry geometryValue);
abstract member GetArea : System.Data.Entity.Spatial.DbGeometry -> Nullable<double>
Public MustOverride Function GetArea (geometryValue As DbGeometry) As Nullable(Of Double)

參數

geometryValue
DbGeometry

幾何值,不需要代表表面。

傳回

表示指定 DbGeometry 值之面積的可為 Null 的雙精度值。

例外狀況

geometryValue 為 null。

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

適用於