Mono Class Library: System.Convert Overview | Members

System.Convert.ToUInt32 Method

Converts a string to a uint . [Edit]

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

Parameters

value
The string to be converted. The string is in the System.Globalization.NumberStyles.Integer style. [Edit]

Returns

value as a 32-bit unsigned integer. [Edit]

Exceptions

TypeReason
ArgumentNullExceptionvalue is a null reference. [Edit]
FormatExceptionvalue cannot be converted to a numeric value. [Edit]
OverflowExceptionThe numeric value of value is greater than uint.MaxValue or less than uint.MinValue. [Edit]

Remarks

This method parses value using the information in a System.Globalization.NumberFormatInfo instance initialized for the current system culture.

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

[Edit]

Requirements

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