ArcGIS Pro 2.6 API Reference Guide
CreateAreaUnit(String) Method
Example 

ArcGIS.Core.Geometry Namespace > AreaUnit Class > CreateAreaUnit Method : CreateAreaUnit(String) Method
Well-known text of the unit.
Convenience method to create a AreaUnit from well-known test. This method is useful for creating custom units.
Syntax
public static AreaUnit CreateAreaUnit( 
   string unitWkt
)
Public Overloads Shared Function CreateAreaUnit( _
   ByVal unitWkt As String _
) As AreaUnit

Parameters

unitWkt
Well-known text of the unit.

Return Value

Example
try
{

  var myFactoryCodeInit = AreaUnit.CreateAreaUnit(109439);     // 109439 is the factory code for square miles

  var myWktUnit = AreaUnit.CreateAreaUnit("HECTARE_AREAUNIT[\"H\",10000.0]");

  var myCustomUnit = AreaUnit.CreateAreaUnit("myAreaUnit", 12);
}
catch (ArgumentException)
{
  // ArgumentException will be thrown by CreateAreaUnit in the following scenarios
  // - if the factory code used is a non-areal factory code  (i.e. it corresponds to degrees which is an angular unit code)
  // - if the factory code used is invalid (i.e. it is negative or doesn't correspond to any factory code)
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

AreaUnit Class
AreaUnit Members
Overload List