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!

Decimal.ToUInt64 (Decimal)

Converts a specified Decimal to a UInt64.

[Visual Basic]
Overloads Public Shared Function ToUInt64( _
   ByVal d As Decimal _
) As UInt64
[C#]
public static ulong ToUInt64(
   Decimal d
);
[C++]
public: static unsigned __int64 ToUInt64(
   Decimal d
);
[JScript]
public static function ToUInt64(
   d : Decimal
) : UInt64;

Parameters

d
A Decimal value.

Return Value

The result's of converting the argument to a long (64 bits) unsigned integer.

Exceptions

Exception Type Condition
OverflowException is thrown if d is less than UInt64.MinValue or greater than UInt64.MaxValue.

Remarks

The ToUInt64method converts a Decimal value into a UInt64 (ulong) and returns it.

The Decimal value is rounded toward zero to the nearest integer value, and the result of this operation is returned as an unsigned, long integer.

See Also

Decimal Structure | Decimal Members | System Namespace | Decimal.ToUInt64 Overload List