Parameters

Return Value

The return value is a negative number, zero, or a positive number reflecting the sort order of the current instance as compared to value. For non-zero return values, the exact value returned by this method is unspecified. The following table defines the return value:

Parameters

Return Value

The return value is a negative number, zero, or a positive number reflecting the sort order of the current instance as compared to value. For non-zero return values, the exact value returned by this method is unspecified. The following table defines the return value:

Return Value

Description

A negative number

Current instance < value.

Zero

Current instance == value.

A positive number

Current instance > value.

Description

[Note: This method is implemented to support the System.IComparable<UInt32> interface.]

Return Value

Exceptions

s represents a number greater than System.UInt32.MaxValue or less than System.UInt32.MinValue.

Description

This version of System.UInt32.Parse(System.String) is equivalent to System.UInt32.Parse(System.String)(s, System.Globalization.NumberStyles.Integer, null
).

The string s is parsed using the formatting
information in a NumberFormatInfo initialized for the current system culture. [Note: For more information, see System.Globalization.NumberFormatInfo.CurrentInfo.]

This method is not CLS-compliant. For a CLS-compliant
alternative use System.Int64.Parse(System.String)(String).

Parameters

s

A String containing the value to convert. The string is interpreted using the style specified by style.

style

Zero or more 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.

Return Value

Exceptions

s represents a number greater than System.UInt32.MaxValue or less than System.UInt32.MinValue.

Description

This version of System.UInt32.Parse(System.String) is equivalent to System.UInt32.Parse(System.String)(s, style, null
).

The string is parsed using the formatting information in
a NumberFormatInfo initialized for the current
system culture. [Note: For more information, see
System.Globalization.NumberFormatInfo.CurrentInfo.]

This method is not CLS-compliant. For a CLS-compliant
alternative use System.Int64.Parse(System.String)(String, NumberStyles).

Return Value

Exceptions

s represents a number greater than System.UInt32.MaxValue or less than System.UInt32.MinValue.

Description

This version of System.UInt32.Parse(System.String) is equivalent to System.UInt32.Parse(System.String)(s, System.Globalization.NumberStyles.Integer, provider).

The string s is parsed using the
culture-specific formatting information from the NumberFormatInfo
instance supplied by provider. If provider is
null
or a
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 System.Int64.Parse(System.String)
(String, IFormatProvider).

Parameters

s

A String containing the value to convert. The string is interpreted using the style specified by style.

style

Zero or more 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.

Return Value

Exceptions

s represents a number greater than System.UInt32.MaxValue or less than System.UInt32.MinValue.

Description

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

Parameters

Return Value

A String representation of the current instance formatted using
the general format specifier, ("G"). The string takes into account the
formatting information in the NumberFormatInfo instance supplied by
provider.

Description

This version of System.UInt32.ToString is equivalent to System.UInt32.ToString("G",
provider).

If provider is
null
or a NumberFormatInfo cannot
be obtained from provider, the formatting information for the current
system culture is used.