Converts a UInt32 to a UInt16.
[Visual Basic] Overloads Public Shared Function ToUInt16( _ ByVal value As UInt32 _ ) As UInt16 [C#] public static ushort ToUInt16( uint value ); [C++] public: static unsigned short ToUInt16( unsigned int value ); [JScript] public static function ToUInt16( value : UInt32 ) : UInt16;
The converted value.
Exception Type | Condition |
---|---|
OverflowException | is thrown if value is greater than UInt16.MaxValue. |
Convert Class | Convert Members | System Namespace | Convert.ToUInt16 Overload List