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!

String.ToSByte

Converts an SByte to a string.

[Visual Basic]
Overridable Public Function ToSByte() As SByte
[C#]
public virtual sbyte ToSByte();
[C++]
public: virtual char ToSByte();
[JScript]
public function ToSByte() : SByte;

Return Value

The SByte representation of the string as a base number.

Exceptions

Exception Type Condition
ArgumentException If the string is not base 2, 8, 10, or 16.
FormatException If the string cannot be parsed as a base number.
ArgumentNullException If the string is null.
OverflowException If the string is greater than SByte.MaxValue or less than SByte.MinValue.

Remarks

If the number is 16, the number may be preceded by "0x"; any other leading or trailing character causes an error.

The ToSByte implementation is the same as ToSByte. (In addition information, see SByte, Convert and Value.)

See Also

String Class | String Members | System Namespace