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

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;

Parameters

c
A Currency value.

Return Value

Returns the result of converting the Currency value to a UInt64.

Exceptions

Exception Type Condition
OverflowException If the Currency value is outside the acceptable range.

Remarks

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.

See Also

Currency Structure | Currency Members | System Namespace