Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IQueue.Element Method

Retrieves, but does not remove, the head of this queue.

[Visual Basic]
Public Sub Element()
[C#]
object Element();

Return Value

The head of this queue.

Remarks

This method differs from Peek only in that it throws an exception if this queue is empty.

Exceptions

Exception Type Condition
NoElementsException If this queue is empty.

See Also

IQueue Interface | Spring.Collections Namespace