Writes an object to the bytes message stream.
Exception Type | Condition |
---|---|
MsgException | Thrown when the write fails. |
MessageFormatException | Thrown when the object value is not of a supported type. |
ArgumentNullException | Throw when the object value is null. |
MessageNotWriteableException | Thrown when the message is read-only. |