Name

Queue.Enqueue Method

Class

System.Collections.Queue

Syntax

queuevariable.Enqueue(obj)
obj

Use: Required

Data Type: Object

The item to place in the queue

Return Value

None

Description

Places an object at the end of the queue

Rules at a Glance

Enqueue adds an item to the end of the queue 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.