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
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.13 |
| .NET 6.0 | 100.13 |
| .NET 6.0 Windows | 100.13 |
| .NET Framework | 100.0 - 100.13 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.0 - 100.13 |
| Xamarin.iOS | 100.0 - 100.13 |
| UWP | 100.0 - 100.15 |