VB.NET Language in a Nutshell
| Stack.Peek Method |
Class
System.Collections.Stack
Syntax
stackvariable .Peek( )
Return Value
Object
Description
Returns the first item in the stack as an Object, but does not remove it from the stack
Programming Tips and Gotchas
The Peek method is similar to the Stack object's Pop method, except that it leaves the stack intact.
See Also
Stack.Pop Method