UnitOfMeasure.belongsToUnitOfMeasureClass Method
Indicates whether the current unit is of a specific class of unit of measure.
Syntax
public boolean belongsToUnitOfMeasureClass(UnitOfMeasureClass _unitOfMeasureClass, [boolean _silent])
Run On
Called
Parameters
- _unitOfMeasureClass
Type: UnitOfMeasureClass Enumeration
The unit of measure class.
- _silent
Type: boolean
Indicates whether error messages should be suppressed.
Return Value
Type: boolean
true if the unit is of the required class; otherwise false.