Reading and Receiving Messages

You can read and receive messages from the queues in your system in several ways. First, you can either receive messages from the queue or you can peek at the messages on a queue without removing them. You also can create an event handler that watches for a new message to arrive and automatically raises an event when the message arrives at the queue. The following sections explain each of these methods of working with queue messages.

You need to keep several considerations in mind when reading and retrieving messages. For example, when you perform a receive operation, you might want to temporarily prevent other users from also removing messages from the queue with which you are working. You can do this by setting ...

Get Special Edition Using® Microsoft® ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.