Export (0) Print
Expand All

DbSpatialServices.GetArea Method (DbGeography)

.NET Framework 4.5

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.

Namespace:  System.Data.Spatial
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public abstract Nullable<double> GetArea(
	DbGeography geographyValue
)

Parameters

geographyValue
Type: System.Data.Spatial.DbGeography

The geography value, which need not represent a surface.

Return Value

Type: System.Nullable<Double>
A nullable double value that indicates the area of the given DbGeography value.

ExceptionCondition
ArgumentNullException

geographyValue

ArgumentException

geographyValue

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft