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 ()

Converts this instance of Decimal to a UInt64.

[Visual Basic]
Overloads Overridable Public Function ToUInt64() As UInt64
[C#]
public virtual ulong ToUInt64();
[C++]
public: virtual unsigned __int64 ToUInt64();
[JScript]
public function ToUInt64() : UInt64;

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