IUnitConverterGetUnitsAsync Method

Returns units associated with given quantity and system type

Namespace: TSD.API.Remoting.Units
Assembly: TSD.API.Remoting (in TSD.API.Remoting.dll) Version: 24.0.1.45+53a79b69d75fb81c51fcd389e0bdcf241e5b9f7c
Syntax
Task<IEnumerable<IUnit>> GetUnitsAsync(
	Quantity quantity,
	SystemType systemType,
	CancellationToken cancellationToken = default
)

Parameters

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  (Optional)
The optional cancellation token

Return Value

TaskIEnumerableIUnit
A collection of all available units
See Also
Was this helpful?
The feedback you give here is not visible to other users. We use your comments to improve the content.
Previous
Next