O'Reilly logo

VB.NET Language in a Nutshell, Second Edition by Steven Roman PhD, Paul Lomax, Ron Petrusha

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

Name

Queue.Peek Method

Class

System.Collections.Queue

Syntax

                  queuevariable.Peek(  )

Return Value

Object

Description

Returns the first item in the queue as an Object, but does not remove it from the queue

Programming Tips and Gotchas

The Peek method is similar to the Queue object’s Dequeue method, except that it leaves the queue intact.

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