Method Remove
Remove(T)
Removes the specified object from the priority queue.
Declaration
public virtual bool Remove(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | the object to be removed. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Remove()
Retrieves and removes the head of this queue. This method differs from Poll() only in that it throws an exception if this queue is empty.
This implementation returns the result of Poll() unless the queue is empty.
Declaration
public virtual T Remove()
Returns
Type | Description |
---|---|
T | the head of this queue |