Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions.
When using a capacity-restricted queue, this method is generally preferable to Add, which can fail to insert an element only by throwing an exception.
|InvalidCastException||if the specified element cannot be compared with elements currently in the priority queue according to the priority queue's ordering.|
|InvalidOperationException||If the element cannot be added at this time due to capacity restrictions.|
|ArgumentNullException|| If the supplied objectToAdd is
|ArgumentException||If some property of the supplied objectToAdd prevents it from being added to this queue.|