NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

String.ToUInt32

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;

Return Value

The UInt32 representation of value as a base number .

Exceptions

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

Remarks

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.

See Also

String Class | String Members | System Namespace