Byte..::..Parse Method (String)
Converts the string representation of a number to its Byte equivalent.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public static byte Parse( string s )
<TemplateAttribute> _ Public Shared Function Parse ( _ s As String _ ) As Byte
[TemplateAttribute] public: static unsigned char^ Parse( String^ s )
Parameters
- s
- Type: System..::..String
A string that contains a number to convert. The string is interpreted using the Integer style.
Return Value
A byte value that is equivalent to the number contained in s.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | s is null. |
System..::..FormatException | s is not of the correct format. |
System..::..OverflowException | s represents a number less than MinValue or greater than MaxValue. |