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!

Boolean.ToBoolean

Converts a string to a Boolean value.

[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

false if the string is zero, otherwise true.

Remarks

The ToBoolean method converts the "true" or "false" Boolean values to the Boolean values of true and false, respectively.

This method implements IConvertible, which replaced IValue. This method is used to obtain the type code for a specified object. (See the TypeCode enumeration for more information about type codes.)

See Also

Boolean Structure | Boolean Members | System Namespace