NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Convert.ToSByte (String)

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;

Parameters

value
A String representation of an SByte value.

Return Value

An SByte with the value represented by value.

Exceptions

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.

See Also

Convert Class | Convert Members | System Namespace | Convert.ToSByte Overload List