DbSpatialServices.GetArea Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a nullable double value that indicates the area of the given value.
Overloads
GetArea(DbGeography) |
Returns a nullable double value that indicates the area of the given DbGeography value, which may be null if the value does not represent a surface. |
GetArea(DbGeometry) |
Returns a nullable double value that indicates the area of the given DbGeometry value, which may be null if the value does not represent a surface. |
GetArea(DbGeography)
Returns a nullable double value that indicates the area of the given DbGeography value, which may be null if the value does not represent a surface.
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)
Parameters
- geographyValue
- DbGeography
The geography value, which need not represent a surface.
Returns
A nullable double value that indicates the area of the given DbGeography value.
Exceptions
geographyValue
geographyValue
Applies to
GetArea(DbGeometry)
Returns a nullable double value that indicates the area of the given DbGeometry value, which may be null if the value does not represent a surface.
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)
Parameters
- geometryValue
- DbGeometry
The geometry value, which need not represent a surface.
Returns
A nullable double value that indicates the area of the given DbGeometry value.
Exceptions
geometryValue
geometryValue