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!

Convert.ToUInt32 (Double)

Returns a 32-bit, 4-byte unsigned integer with the converted number.

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

Parameters

value
The number to be converted.

Return Value

value rounded to the nearest integer. If value is exactly halfway between two whole numbers, this method returns the the integer that is even (i.e. 4.5 is converted to 4, and 5.5 is converted to 6).

Exceptions

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

See Also

Convert Class | Convert Members | System Namespace | Convert.ToUInt32 Overload List