Converts a Currency to a UInt64.
[Visual Basic] Public Shared Function ToUInt64( _ ByVal c As Currency _ ) As UInt64 [C#] public static ulong ToUInt64( Currency c ); [C++] public: static unsigned __int64 ToUInt64( Currency c ); [JScript] public static function ToUInt64( c : Currency ) : UInt64;
Returns the result of converting the Currency value to a UInt64.
Exception Type | Condition |
---|---|
OverflowException | If the Currency value is outside the acceptable range. |
Note that this method is not CLS complaint.
The ToUInt64 method converts this instance of a Currency value to a UInt64 (ulong) value. The Currency value is rounded towards zero to the nearest integer value, and the result of this operation is returned as an unsigned long.An overflow exception is thrown if the Currency value is less than MinValue or greater than MaxValue.