Mono Class Library: System.Convert Overview | Members

System.Convert.ToUInt32 Method

Converts a long to a uint .

[System.CLSCompliant(false)]
public static uint ToUInt32 (long value)

Parameters

value
The 64-bit signed integer value to be converted.

Returns

value as a 32-bit unsigned integer.

Exceptions

TypeReason
OverflowExceptionvalue is greater than uint.MaxValue or less than uint.MinValue.

Remarks

This member is not CLS-compliant. For a CLS-compliant alternative, use Convert.ToInt64(object)(long).

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0