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.ToBoolean

Throws an InvalidCastException. Called by the ToType method.

[Visual Basic]
Overridable Public Function ToBoolean() As Boolean
[C#]
public virtual bool ToBoolean();
[C++]
public: virtual bool ToBoolean();
[JScript]
public function ToBoolean() : Boolean;

Return Value

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

Exceptions

Exception Type Condition
InvalidCastException (Always thrown.)

See Also

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