FromMessage method


Purpose

The FromMessage method loads data from a message into a bag. This method corresponds to the MQAI call, "mqBufferToBag," in the Programmable command formats reference.


Format

    FromMessage (Message, OptionsBag)


Parameters

    Message (MQMessage) - input
    The message containing the data to be converted.
    OptionsBag (MQBag) - input
    Options to control the processing of the call.


Visual Basic Language Invocation

To load data from a message into a bag:
mqbag.FromMessage(Message,[OptionsBag])