Name

Stack.Push Method

Class

System.Collections.Stack

Syntax

stackvariable.Push(obj)
obj

Use: Required

Data Type: Object

The item to place in the stack

Return Value

None

Description

Places an Object on the top of the stack

Rules at a Glance

The Push method adds an item to the top of the stack and increases the Count property by 1.

Get VB .NET Language in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.