Click or drag to resize

QuantitySubtraction Operator

Subtracts the second quantity from the first. The quantities must have the same Unit.

Namespace:  Aloe.EnterpriseOne.Model
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public static Quantity operator -(
	Quantity first,
	Quantity second
)

Parameters

first
Type: Aloe.EnterpriseOne.ModelQuantity
The quantity from which to subtract.
second
Type: Aloe.EnterpriseOne.ModelQuantity
The quantity to subtract.

Return Value

Type: Quantity
Exceptions
ExceptionCondition
InvalidOperationExceptionCannot subtract quantities, which have different measurement units.
See Also