Mono Class Library: System.Xml.XmlConvert Overview | Members

System.Xml.XmlConvert.ToUInt32 Method

Converts a string to a uint equivalent.

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

Parameters

s
The string to convert.

Returns

The uint equivalent of s.

Exceptions

TypeReason
ArgumentNullExceptions is a null reference.
FormatExceptions is not in the correct format.
OverflowExceptions represents a number less than uint.MinValue or greater than uint.MaxValue.

Remarks

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

This method calls uint.Parse(string)(s, System.Globalization.NumberStyles.AllowLeadingSign|System.Globalization.NumberStyles.AllowLeadingWhite|System.Globalization.NumberStyles.AllowTrailingWhite, System.Globalization.NumberFormatInfo.InvariantInfo).

Requirements

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