How to: Verify Messages at Design Time

You can use the Properties window to verify that your message-sending mechanism works correctly. Working with the Message Queues node in Server Explorer, you can select and expand queues to see the messages they contain, then select specific messages and view information about them in the Properties window. The Properties window displays information about the metadata attached to the message — its arrival time, authentication status, correlation ID, and so on — and also allows you to view the body of the message by accessing the BodyStream property.

To verify information about a message at design time

  1. From design view, access Server Explorer. For more information, see How to: Access and Initialize Server Explorer/Database Explorer.

  2. Expand the Message Queues node, and locate the queue you want to view information about under Public Queues, Private Queues, or System Queues.

  3. Expand the queue you need and then locate the message you want under either Journal Messages or Queue Messages.

  4. Click a message.

    Information about that message appears in the Properties window.

    To view the message body, click the ellipsis (...) button next to the BodyStream property.

    The Byte Array Property Editor dialog box appears.

  5. Click Auto to view the message's body in XML format, or choose one of the other view options as appropriate.

See Also

Tasks

How to: Request Acknowledgement for Messages

How to: Send Simple Messages

How to: Send Complex Messages

How to: Create MessageQueue Component Instances

Concepts

Default Message Properties

Other Resources

Sending and Serializing Messages