Converts a String to an SByte.
[Visual Basic] Overloads Public Shared Function ToSByte( _ ByVal value As String _ ) As SByte [C#] public static sbyte ToSByte( string value ); [C++] public: static char ToSByte( String* value ); [JScript] public static function ToSByte( value : String ) : SByte;
An SByte with the value represented by value.
Exception Type | Condition |
---|---|
ArgumentException | value is null. |
FormatException | value does not contain a representation that can be converted to an SByte using the Parse(String) method implemented by that type.
value is greater than SByte.MaxValue or less than SByte.MinValue. |
Convert Class | Convert Members | System Namespace | Convert.ToSByte Overload List