Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DbSpatialServices.GetArea Method (DbGeometry)

.NET Framework 4.6 and 4.5

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.

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

public abstract Nullable<double> GetArea(
	DbGeometry geometryValue
)

Parameters

geometryValue
Type: System.Data.Spatial.DbGeometry

The geometry value, which need not represent a surface.

Return Value

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

ExceptionCondition
ArgumentNullException

geometryValue

ArgumentException

geometryValue

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft