Mono Class Library: System.UInt32 Overview | Members

System.UInt32.Parse Method

Returns the specified string converted to a uint value.

[System.CLSCompliant(false)]
public static uint Parse (string s, System.Globalization.NumberStyles style, IFormatProvider provider)

Parameters

s
A string containing the value to convert. The string is interpreted using the style specified by style.
style
Zero or more System.Globalization.NumberStyles values that specify the style of s. Specify multiple values for style using the bitwise OR operator. If style is a null reference, the string is interpreted using the System.Globalization.NumberStyles.Integer style.
provider
Documentation for this section has not yet been entered.

Returns

The uint value obtained from s.

Exceptions

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

Remarks

The string s is parsed using the culture-specific formatting information from the System.Globalization.NumberFormatInfo instance supplied by provider. If provider is null or a System.Globalization.NumberFormatInfo cannot be obtained from provider, the formatting information for the current system culture is used.

This method is not CLS-compliant. For a CLS-compliant alternative use long.Parse(string)(string, System.Globalization.NumberStyles, IFormatProvider).

Requirements

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