Converts an Int16 to an 8-bit unsigned byte.
[Visual Basic] Overloads Public Shared Function ToByte( _ ByVal value As Short _ ) As Byte [C#] public static byte ToByte( short value ); [C++] public: static unsigned char ToByte( short value ); [JScript] public static function ToByte( value : Int16 ) : Byte;
The converted value.
Exception Type | Condition |
---|---|
OverflowException | The value is greater than Byte.MaxValue or less than Byte.MinValue. |
Convert Class | Convert Members | System Namespace | Convert.ToByte Overload List