Queue.Peek Method

   
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.

See Also

Queue.Dequeue Method

   


VB.Net Language in a Nutshell
VB.NET Language in a Nutshell
ISBN: B00006L54Q
EAN: N/A
Year: 2002
Pages: 503

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