Show / Hide Table of Contents

Method FromUnitId

FromUnitId(Int32)

Creates a unit based on a unit ID

Declaration
public static Unit FromUnitId(int unitId)
Parameters
Type Name Description
System.Int32 unitId

The unit ID.

Returns
Type Description
Unit

Depending on the given ID, this may be a LinearUnit, AngularUnit, or an AreaUnit.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.13
.NET 6.0100.13
.NET 6.0 Windows100.13
.NET Framework100.0 - 100.13
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.13
Xamarin.iOS100.0 - 100.13
UWP100.0 - 100.15
In This Article
Back to top Copyright © 2022 Esri.