NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Currency.Subtract

Subtracts two specified Currency values.

[Visual Basic]
Public Shared Function Subtract( _
   ByVal c1 As Currency, _
   ByVal c2 As Currency _
) As Currency
[C#]
public static Currency Subtract(
   Currency c1,
   Currency c2
);
[C++]
public: static Currency Subtract(
   Currency c1,
   Currency c2
);
[JScript]
public static function Subtract(
   c1 : Currency,
   c2 : Currency
) : Currency;

Parameters

c1
The first Currency value.
c2
The second Currency value.

Return Value

The results of subtacting the two Currency values.

Exceptions

Exception Type Condition
OverflowException If the result is to large to represent as a Currency.

Remarks

The Subtract method performs the arithmetic function of subtracting the second Currecny value from the first Currency value (c1 - c2) and returning the results. An overflow exception will be theown if the result's of subtracting the two Currency values (c1 - c2) is greater than MaxValue and cannot be represented as a Currency.

See Also

Currency Structure | Currency Members | System Namespace