NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DBNull.ToByte

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;

Return Value

None, but the return value is typed byte to implement the IConvertible interface.

Exceptions

Exception Type Condition
InvalidCastException (Always thrown.)

Remarks

If the ToType type is a byte this method is called. This method throws an InvalidCastException().

See Also

DBNull Class | DBNull Members | System Namespace | ToType | IConvertible | Type | Byte