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!

SByte.Parse (String)

Converts a String to a formatted SByte. The SByte type is not CLS compliant. The CLS-compliant alternative is Byte.

[C#]
public static sbyte Parse(
   string s
);
[C++]
public: static char Parse(
   String* s
);
[JScript]
public static function Parse(
   s : String
) : SByte;

[Visual Basic] The SByte type cannot be used in Visual Basic.

Parameters [C#, C++, JScript]

s
The string to convert to an SByte.

Return Value [C#, C++, JScript]

Returns the byte representation of s.

Exceptions [C#, C++, JScript]

Exception Type Condition
ArgumentException If s is a null reference (in Visual Basic Nothing).
FormatException If s does not consist of an optional minus sign followed by a sequence of digits ("0"- "9").
OverflowException If s represents a number that is less than SByte.MinValue or greater than SByte.MaxValue.

Remarks [C#, C++, JScript]

Leading and trailing white space characters are ignored.

See Also

SByte Structure | SByte Members | System Namespace | SByte.Parse Overload List | String | MaxValue | MinValue