WebLogic Messaging API Class Library |

# IBytesMessage.WriteBoolean Method

Writes a `boolean` to the bytes message stream as a 1-byte value. The value `true` is written as the value `(byte)1`; the value `false` is written as the value `(byte)0`.

void WriteBoolean(
Boolean value
);

#### Parameters

Boolean
  the `boolean` value to be written

#### Exceptions

Exception Type | Condition
--- | ---
MessageException | if JMS fails to write the message due to some internal error.
MessageNotWriteableException | if the message is in read-only mode.

#### See Also

IBytesMessage Interface | WebLogic.Messaging Namespace