Throws an InvalidCastException. Called by the ToType method.
[Visual Basic] Overridable Public Function ToInt16() As Short [C#] public virtual short ToInt16(); [C++] public: virtual short ToInt16(); [JScript] public function ToInt16() : Int16;
None, but the return value is typed short to implement the IConvertible interface.
Exception Type | Condition |
---|---|
InvalidCastException | (Always thrown.) |
If the ToType type is a short this method is called. This method throws an InvalidCastException().
DBNull Class | DBNull Members | System Namespace | ToType | IConvertible | Type | Int16