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 8-bit signed 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 SByte
[CLSCompliantAttribute(false)]
public static sbyte Parse(
    string s
)
[CLSCompliantAttribute(false)]
public:
static signed char Parse(
    String^ s
)
[<CLSCompliantAttribute(false)>]
static member Parse : 
        s:string -> sbyte 
public static function Parse(
    s : String
) : sbyte

Parameters

  • s
    Type: System. . :: . .String
    A string that represents a number to convert. The string is interpreted using the NumberStyles.Integer style.

Return Value

Type: System. . :: . .SByte
An 8-bit signed integer that is equivalent to the number contained in the s parameter.

.NET Framework Security

See Also

Reference

SByte Structure

System Namespace