Export (0) Print
Expand All

Queue Methods

The methods of the Queue class are listed here. For a complete list of Queue class members, see the Queue Members topic.

Public Methods

public methodClear

Supported by the .NET Compact Framework.

Removes all objects from the Queue.
public methodClone

Supported by the .NET Compact Framework.

Creates a shallow copy of the Queue.
public methodContains

Supported by the .NET Compact Framework.

Determines whether an element is in the Queue.
public methodCopyTo

Supported by the .NET Compact Framework.

Copies the Queue elements to an existing one-dimensional Array, starting at the specified array index.
public methodDequeue

Supported by the .NET Compact Framework.

Removes and returns the object at the beginning of the Queue.
public methodEnqueue

Supported by the .NET Compact Framework.

Adds an object to the end of the Queue.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetEnumerator

Supported by the .NET Compact Framework.

Returns an enumerator that can iterate through the Queue.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodPeek

Supported by the .NET Compact Framework.

Returns the object at the beginning of the Queue without removing it.
public methodstatic (Shared in Visual Basic)Synchronized Returns a Queue wrapper that is synchronized (thread-safe).
public methodToArray

Supported by the .NET Compact Framework.

Copies the Queue elements to a new array.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.
public methodTrimToSize

Supported by the .NET Compact Framework.

Sets the capacity to the actual number of elements in the Queue.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

Queue Class | System.Collections Namespace

Show:
© 2014 Microsoft