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!

Convert.ToByte (Boolean)

Returns an 8-bit unsigned byte whose value is true or false, depending on the value to be converted.

[Visual Basic]
Overloads Public Shared Function ToByte( _
   ByVal value As Boolean _
) As Byte
[C#]
public static byte ToByte(
   bool value
);
[C++]
public: static unsigned char ToByte(
   bool value
);
[JScript]
public static function ToByte(
   value : Boolean
) : Byte;

Parameters

value
The number to be converted.

Return Value

The number 1 if value is true; otherwise, 0.

See Also

Convert Class | Convert Members | System Namespace | Convert.ToByte Overload List