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

Converts this instance of a Boolean to an unsigned Byte.

[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

true if it is a byte, otherwise false.

Remarks

The ToByte method returns an 8-bit unsigned Byte whose value is true or false, depending on the value to be converted.

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, Convert, and ToByte.)

See Also

Boolean Structure | Boolean Members | System Namespace