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 signed integer equivalent.

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

Syntax

'Declaration
Public Shared Function Parse ( _
    s As String _
) As Short
public static short Parse(
    string s
)
public:
static short Parse(
    String^ s
)
static member Parse : 
        s:string -> int16 
public static function Parse(
    s : String
) : short

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

Int16 Structure

System Namespace