ClassSystem.Collections.Queue (standard version) System.Collections.Generic.Queue (generic version) SyntaxDim result As Object = queueVariable.Peek( ) DescriptionThe Peek method returns the beginning item in the queue as an Object, but it does not remove it from the queue. Usage at a GlanceThe Peek method is similar to the Queue object's Dequeue method, except that it leaves the queue intact. Version DifferencesVisual Basic 2005 adds support for generics to queues, as discussed in Chapter 10. See AlsoQueue Class, Queue.Dequeue Method |