Method GetUnitsAsync

GetUnitsAsync(Quantity, SystemType, CancellationToken)

Returns units associated with given quantity and system type

Declaration
Task<IEnumerable<IUnit>> GetUnitsAsync(Quantity quantity, SystemType systemType, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Quantity quantity

The quantity to get units for (if Unknown, all units will be returned)

SystemType systemType

The type of system to get units for

CancellationToken cancellationToken

The optional cancellation token

Returns
Type Description
Task<IEnumerable<IUnit>>

A collection of all available units

Was this helpful?
The feedback you give here is not visible to other users. We use your comments to improve the content.
Previous
Next