Converts the current value to a Boolean value based on the underlying type.
[Visual Basic] Overridable Public Function ToBoolean() As Boolean [C#] public virtual bool ToBoolean(); [C++] public: virtual bool ToBoolean(); [JScript] public function ToBoolean() : Boolean;
Exception Type | Condition |
---|---|
InvalidCastException | Always. |
Currently not implemented. Always throws an exception.