SByte..::..Parse Method (String)
Converts the string representation of a number to its 8-bit signed integer equivalent.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public static sbyte Parse( string s )
<TemplateAttribute> _ Public Shared Function Parse ( _ s As String _ ) As SByte
[TemplateAttribute] public: static signed char^ Parse( String^ s )
Parameters
- s
- Type: System..::..String
A string that represents a number to convert. The string is interpreted using the Integer style.
Return Value
An 8-bit signed integer that is equivalent to the number contained in the s parameter.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException | s is null. |
System..::..FormatException | s does not consist of an optional sign followed by a sequence of digits (zero through nine). |
System..::..OverflowException | s represents a number less than MinValue or greater than MaxValue. |