ToMessage method

Purpose

The ToMessage method returns a reference to an MQMessage object. The reference contains data from a bag. This method corresponds to the MQAI call, "mqBagToBuffer," in the WebSphere MQ Programmable Command Formats and Administration Interface.

Format

ToMessage (OptionsBag, Message)

Parameters

OptionsBag (MQBag) - input
A bag containing options that control the processing of the method.
Message (MQMessage) - output
An MQMessage object reference containing data from the bag.

Visual Basic Language Invocation

To use the ToMessage Method:

Set Message = mqbag.ToMessage([OptionsBag])