Redigera

Dela via


DefaultPropertiesToSend.Extension Property

Definition

Gets or sets additional information associated with the message.

public:
 property cli::array <System::Byte> ^ Extension { cli::array <System::Byte> ^ get(); void set(cli::array <System::Byte> ^ value); };
[System.Messaging.MessagingDescription("MsgExtension")]
public byte[] Extension { get; set; }
[<System.Messaging.MessagingDescription("MsgExtension")>]
member this.Extension : byte[] with get, set
Public Property Extension As Byte()

Property Value

Byte[]

An array of bytes that provides additional, application-defined information associated with the message. The default is a zero-length array.

Attributes

Remarks

The Extension property provides for additional application-defined information that is associated with the message, such as a large binary object. It is the responsibility of the receiving application to interpret the contents of the Extension.

Where possible, message data should be included in the body of the message rather than in the extension.

When working with foreign queues, use the Extension property to specify non-Message Queuing message properties.

A foreign queue exists in a queuing system other than Microsoft Message Queuing. Microsoft Message Queuing communicates with such queues through a connector application.

Applies to

See also