O'Reilly logo

Special Edition Using® Microsoft® ASP.NET by Richard Leinecker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required