Decimal..::..ToUInt16 Method
Converts the value of the specified Decimal to the equivalent 16-bit unsigned integer.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public static ushort ToUInt16( decimal value )
<TemplateAttribute> _ Public Shared Function ToUInt16 ( _ value As Decimal _ ) As UShort
[TemplateAttribute] public: static unsigned short^ ToUInt16( Decimal^ value )
Parameters
- value
- Type: System..::..Decimal
The decimal number to convert.
Return Value
A 16-bit unsigned integer equivalent to the value of value.Exceptions
Exception | Condition |
---|---|
System..::..OverflowException | value is greater than MaxValue or less than MinValue. |