MsmqMessage<T>.Extension Property

Definition

Gets or sets an array of Byte that contains any additional, application-defined information that is associated with this message.

public byte[] Extension { get; set; }

Property Value

Byte[]

An array of Byte that contains any additional, application-defined information that is associated with this message.

Examples

byte[] buffer = {0x10, 0x11, 0x12, 0x14};
message.Extension = buffer;

Remarks

Use this property to store additional information, such as a large binary object.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1