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

Converts a Currency to a UInt32.

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

Parameters

c
A Currency value.

Return Value

The result of converting the Currency value to UInt32.

Exceptions

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

Remarks

Note that this method is not CLS complaint.

The ToUInt32 converts this instance of Currency to a UInt32 (uint) value. The Currency value is rounded towards zero to the nearest integer value, and the result of this operation is returned as an unsigned integer.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