UnitUtils.GetValidUnits
Method
Description:
Gets the identifiers of all valid units for a given measurable spec.
Gets the identifiers of all valid units for a given measurable spec.
Parameters
| Parameter | Type | Description |
|---|---|---|
| specTypeId | ForgeTypeId | Identifier of the measurable spec. |
Return Value
| Type | Description |
|---|---|
| IList | Identifiers of the valid units. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | specTypeId is not a measurable spec identifier. See UnitUtils.IsMeasurableSpec(ForgeTypeId). |
| ArgumentNullException | A non-optional argument was null |