DbSpatialServices.GetArea 方法

定义

返回一个可以为 null 的双精度值,该值指示给定值的区域。

重载

名称 说明
GetArea(DbGeography)

返回一个可以为 null 的双精度值,该值指示给定 DbGeography 值的区域,如果该值不表示图面,则该值可能为 null。

GetArea(DbGeometry)

返回一个可以为 null 的双精度值,该值指示给定 DbGeometry 值的区域,如果该值不表示图面,则该值可能为 null。

GetArea(DbGeography)

返回一个可以为 null 的双精度值,该值指示给定 DbGeography 值的区域,如果该值不表示图面,则该值可能为 null。

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

参数

geographyValue
DbGeography

不需要表示图面的地理值。

返回

一个可为 null 的双精度值,指示给定 DbGeography 值的区域。

例外

geographyValue

geographyValue

适用于

GetArea(DbGeometry)

返回一个可以为 null 的双精度值,该值指示给定 DbGeometry 值的区域,如果该值不表示图面,则该值可能为 null。

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

参数

geometryValue
DbGeometry

不需要表示图面的几何图形值。

返回

一个可为 null 的双精度值,指示给定 DbGeometry 值的区域。

例外

geometryValue

geometryValue

适用于