Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractQueue.AddAll Method

Adds all of the elements in the supplied collection to this queue.

[Visual Basic]
Public Overridable Sub AddAll( _
   ByVal collection As ICollection _
public virtual bool AddAll(
   ICollection collection


The collection containing the elements to be added to this queue.

Return Value

if this queue changed as a result of the call.


Attempts to AddAll of a queue to itself result in ArgumentException. Further, the behavior of this operation is undefined if the specified collection is modified while the operation is in progress.

This implementation iterates over the specified collection, and adds each element returned by the iterator to this queue, in turn. An exception encountered while trying to add an element (including, in particular, a element) may result in only some of the elements having been successfully added when the associated exception is thrown.


Exception Type Condition
ArgumentNullException If the supplied collection or any one of its elements are .
ArgumentException If the collection is the current IQueue or the collection size is greater than the queue capacity.

See Also

AbstractQueue Class | Spring.Collections Namespace