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.ToUInt32 (Decimal)

Converts a specified Decimal to a UInt32.

[Visual Basic]
Overloads Public Shared Function ToUInt32( _
   ByVal d As Decimal _
) As UInt32
[C#]
public static uint ToUInt32(
   Decimal d
);
[C++]
public: static unsigned int ToUInt32(
   Decimal d
);
[JScript]
public static function ToUInt32(
   d : Decimal
) : UInt32;

Parameters

d
The Decimal value to convert.

Return Value

The result's of converting the argument to an unsigned integer.

Exceptions

Exception Type Condition
OverflowException is thrown if the resulting integer value is less than UInt32.MinValue or greater than UInt32.MaxValue.

Remarks

The ToUInt32method converts a Decimal value into a UInt32 and returns it.

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

See Also

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