Converts a specified Decimal to a UInt16.
[Visual Basic] Overloads Public Shared Function ToUInt16( _ ByVal value As Decimal _ ) As UInt16 [C#] public static ushort ToUInt16( Decimal value ); [C++] public: static unsigned short ToUInt16( Decimal value ); [JScript] public static function ToUInt16( value : Decimal ) : UInt16;
The result's of converting the Decimal to a UInt16 value.
Exception Type | Condition |
---|---|
OverflowException | if the resulting integer value is less than UInt16.MinValue or greater than UInt16.MaxValue. |
The ToUInt16 method converts a Decimal value into a UInt16 and returns it.
Decimal Structure | Decimal Members | System Namespace | Decimal.ToUInt16 Overload List