Queue.Dequeue Method


Queue.Dequeue Method

Class

System.Collections.Queue (standard version)

System.Collections.Generic.Queue (generic version)

Syntax

     Dim result As Object = queueVariable.Dequeue(  ) 

Description

The Dequeue method removes the beginning item from the queue and returns it as an Object.

Usage at a Glance

Dequeue generates an error if applied to an empty queue. Use the Count property to check for items in the queue.

Version Differences

Visual Basic 2005 adds support for generics to queues, as discussed in Chapter 10.

See Also

Queue Class, Queue.Peek Method




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net