DBNull.IConvertible.ToByte Method
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
This conversion is not supported. Attempting to make this conversion throws an InvalidCastException.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Parameters
- provider
- Type: System.IFormatProvider
An object that implements the IFormatProvider interface. (This parameter is not used; specify null.)
Implements
IConvertible.ToByte(IFormatProvider)| Exception | Condition |
|---|---|
| InvalidCastException | This conversion is not supported for the DBNull type. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.