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