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