AddUnitOfMeasure Method
Creates a Unit of Measure object.
Required Permissions
ItemAdministerUnitOfMeasureSyntax
public UnitOfMeasure AddUnitOfMeasure(
System.string unitName,
System.string abbreviation,
System.double conversion,
System.long baseUofMID
)Public Function AddUnitOfMeasure( _
ByVal unitName As System.String, _
ByVal abbreviation As System.String, _
ByVal conversion As System.Double, _
ByVal baseUofMID As System.Long _
) As UnitOfMeasureParameters
| Name | Description |
|---|---|
| unitName | The display name. |
| abbreviation | The abbreviated name. |
| conversion | The conversion factor. Only used if a base unit of measure is defined. |
| baseUofMID | The base unit of measure. Enter in 0 if there is no base unit. |
Return Value
The new Unit of Measure object.