June 2003
Intermediate to advanced
624 pages
12h 41m
English
Queues work much as they sound—they are first-in, first-out (FIFO) collections, like when you stand in line for tickets. These collections are good when you have a group of objects you want to process as they come in, such as when you receive client requests to connect to a Web service. Queues are supported with the Queue class. You can see the significant public properties of Queue objects in Table 6.7, and their significant public methods in Table 6.8. You use the Enqueue method to add items to the end of a queue and Dequeue to remove the first item from the front of the queue.
| PROPERTY | PURPOSE |
|---|---|
| Count | Returns the number of elements contained in the queue. |
| IsSynchronized | Returns ... |