Click or drag to resize

ConcurrentPriorityQueueTKey, TValue Methods

The ConcurrentPriorityQueueTKey, TValue type exposes the following members.

Methods
 NameDescription
Public methodEnqueue Adds the specified key and value to the queue.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryDequeue Dequeues the minimum key value. Returns true if the queue is not empty; otherwise, false.
Public methodTryDequeueIf(FuncTKey, Boolean, TKey, TValue) Dequeues the minimum key value if the predicate returns true for the minimum key. Returns true if the item was dequeued; otherwise, false.
Public methodTryDequeueIf(FuncTKey, TValue, Boolean, TKey, TValue) Dequeues the minimum key value if the predicate returns true for the minimum key and value. Returns true if the item was dequeued; otherwise, false.
Public methodTryPeek Peeks the element with the minimum key value. Returns true if the queue is not empty; otherwise, false.
Top
See Also