Converts an Int64 to an Int16.
[Visual Basic] Overloads Public Shared Function ToInt16( _ ByVal value As Long _ ) As Short [C#] public static short ToInt16( long value ); [C++] public: static short ToInt16( __int64 value ); [JScript] public static function ToInt16( value : long ) : Int16;
The value as an Int16 .
Exception Type | Condition |
---|---|
OverflowException | is thrown if value is greater than Int16.MaxValue or less than Int16.MinValue. |
Convert Class | Convert Members | System Namespace | Convert.ToInt16 Overload List