Queue: Contains

Contains

Determines whether an element is in the Queue.



 Public Function Contains(
	  ByRef Value As Variant ) As Boolean

Parameters

Value
[ByRef] Variant. The value to locate in the Queue.

Return Values

Boolean -  True if Value is found in the Queue; otherwise False.

Remarks

This method determines equality by calling Object.Equals.

This method performs a linear search; therefore, this method is an O(n) operation, where n is Count.

See Also

Project CorLib Overview

Class Queue Overview