Implements the operator -.
| C# | Visual Basic | Visual C++ |
public static CurrencyAmount operator -( CurrencyAmount originalValue, CurrencyAmount amount )
Public Shared Operator - ( _ originalValue As CurrencyAmount, _ amount As CurrencyAmount _ ) As CurrencyAmount
public: static CurrencyAmount operator -( CurrencyAmount originalValue, CurrencyAmount amount )
- originalValue (CurrencyAmount)
- The original value.
- amount (CurrencyAmount)
- The amount to subtract.
The result of the operator.
| Exception | Condition |
|---|---|
| CurrencyMismatchException |
If currency types do not match
|