WebLogic Messaging API Class Library |

# IStreamMessage.WriteBoolean Method

Writes a `boolean` to the stream message. 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

IStreamMessage Interface | WebLogic.Messaging Namespace