Converts a UInt16 to a Byte.
[Visual Basic] Overloads Public Shared Function ToByte( _ ByVal value As UInt16 _ ) As Byte [C#] public static byte ToByte( ushort value ); [C++] public: static unsigned char ToByte( unsigned short value ); [JScript] public static function ToByte( value : UInt16 ) : Byte;
True if value is non-zero, false otherwise.
Exception Type | Condition |
---|---|
OverflowException | The value is greater than Byte.MaxValue. |
Convert Class | Convert Members | System Namespace | Convert.ToByte Overload List