Bridge

UInt16..::..Parse Method (String)

Converts the string representation of a number to its 16-bit unsigned integer equivalent.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


[TemplateAttribute]
public static ushort Parse(
	string s
)
<TemplateAttribute> _
Public Shared Function Parse ( _
	s As String _
) As UShort
[TemplateAttribute]
public:
static unsigned short^ Parse(
	String^ s
)

Parameters

s
Type: System..::..String
A string that represents the number to convert.

Return Value

A 16-bit unsigned integer equivalent to the number contained in s.

Exceptions


ExceptionCondition
System..::..ArgumentNullExceptions is null.
System..::..FormatExceptions is not in the correct format.
System..::..OverflowExceptions represents a number less than MinValue or greater than MaxValue.