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.Negate

Returns the negated value of the specified Currency.

[Visual Basic]
Public Shared Function Negate( _
   ByVal c As Currency _
) As Currency
[C#]
public static Currency Negate(
   Currency c
);
[C++]
public: static Currency Negate(
   Currency c
);
[JScript]
public static function Negate(
   c : Currency
) : Currency;

Parameters

c
A Currency value.

Return Value

Value Type Condition
-c If c is other than zero.
0 If c is zero.

Exceptions

Exception Type Condition
OverflowException If value is equal to MinValue.

Remarks

The Negate method returns the negated value of the argument as a long (Int64). For example:

See Also

Currency Structure | Currency Members | System Namespace