How to: Specify Properties to Retrieve with a Message
When you create an instance of thecomponent, you can set a series of properties to indicate what properties you want to retrieve when the component gets a message from a queue. These properties exist in a class called and correspond to actual properties on the class. When you set the value for one of these properties to true, the component will retrieve the corresponding property each time a message is removed from the queue.
If you do not need access to some properties in your retrieved message and want to improve performance, you can set the MessagePropertyFilter to false.
By default, the properties retrieved with a message include properties indicating the time it was sent and arrived, several identifiers for the message, the message's label, the response queue, and the body of the message.
To specify the properties to retrieve with a message
Create an instance of the MessageQueue component and set itsproperty to the queue to which you want to refer. For more information, see .
In the Properties window, expand thenode.
Set the value for the properties you want to receive to true.
You can set these in code, as well. When doing so, you can use themethod to set all the filter properties to true, or the method to set all the filter properties to false.