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!

Byte.ToBoolean

Converts a string to a Byte 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 number to be converted is 0, otherwise true.

Remarks

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

This method implements IConvertible, which replaced IValue. This method is used to obtain the type code for a specified object. (See Convert and Value for more information about conversions; see the Type for more information about types.)

See Also

Byte Structure | Byte Members | System Namespace