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