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!

UInt16.Parse

Converts a String to a UInt16. The UInt16 type is not CLS compliant. The CLS-compliant alternative is Int16.

[Visual Basic] The UInt16 type cannot be used in Visual Basic.

Overload List [C#, C++, JScript]

Converts a String to a UInt16.

[C#] public static ushort Parse(String);
[C++] public: static unsigned short Parse(String*);
[JScript] public static function Parse(String) : UInt16;

Converts a String representation of a value to an UInt16 with the NumberStyles enumeration formatted by NumberFormatInfo.

[C#] public static ushort Parse(String, NumberStyles, NumberFormatInfo);
[C++] public: static unsigned short Parse(String*, NumberStyles, NumberFormatInfo);
[JScript] public static function Parse(String, NumberStyles, NumberFormatInfo) : UInt16;

Converts a string representation of a value to a UInt16 with the NumberStyles enumeration.

[C#] public static ushort Parse(String, NumberStyles);
[C++] public: static unsigned short Parse(String*, NumberStyles);
[JScript] public static function Parse(String, NumberStyles) : UInt16;

See Also

UInt16 Structure | UInt16 Members | System Namespace