Share via


Parse Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

This API is not CLS-compliant. The CLS-compliant alternative is Parse.

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

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Shared Function Parse ( _
    s As String _
) As UShort
[CLSCompliantAttribute(false)]
public static ushort Parse(
    string s
)
[CLSCompliantAttribute(false)]
public:
static unsigned short Parse(
    String^ s
)
[<CLSCompliantAttribute(false)>]
static member Parse : 
        s:string -> uint16 
public static function Parse(
    s : String
) : ushort

Parameters

Return Value

Type: System. . :: . .UInt16
A 16-bit unsigned integer equivalent to the number contained in s.

.NET Framework Security

See Also

Reference

UInt16 Structure

System Namespace