WebLogic Messaging API Class Library |

# IMessage.JMSCorrelationIDAsBytes Property

Gets and Sets the correlation ID as an array of bytes for the message (a `byte[]`).

The array is copied before the method returns, so future modifications to the array will not alter this message header.

The use of a `byte[]` value for `JMSCorrelationID` is non-portable between vendors.

JMSCorrelationIDAsBytes {get; set;}

#### Remarks

byte[] is expected in the UTF-16BE format string `System.Text.Encoding.BigEndianUnicode` can be used to encode or decode data. byte[] given by setter will be assumed in UTF-16BE format and will be stored as string

#### Exceptions

Exception Type | Condition
--- | ---
MessageException | if JMS fails to set the correlation ID due to some internal error.

#### See Also

IMessage Interface | WebLogic.Messaging Namespace | IMessage.JMSCorrelationID