SqlGeometry.STArea Method

Returns the total surface area of a SqlGeometry instance.

Namespace:  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlDouble STArea()

Return Value

Type: System.Data.SqlTypes.SqlDouble
A SqlDouble value that represents the total surface area of the SqlGeometry.

Returns 0 if the instance contains only 0- and 1-dimensional figures, or if it is empty.

Community Additions