Converts a string to a UInt32 value.
[Visual Basic] Overridable Public Function ToUInt32() As UInt32 [C#] public virtual uint ToUInt32(); [C++] public: virtual unsigned int ToUInt32(); [JScript] public function ToUInt32() : UInt32;
The UInt32 representation of value as a base number .
Exception Type | Condition |
---|---|
ArgumentException | If the string is not 2, 8, 10, or 16.If the string is null. |
FormatException | If the string cannot be parsed as a base number or the value represented is greater than UInt32.MaxValue or less than UInt32.MinValue |
A string value can only be base 2, 8, 10, or 16. If the string is 16, the number may be preceded by "0x"; any other leading or trailing characters cause an error.