com.onlineobject.objectnet Namespace

EmbeddedPriorityQueue<(Of <(<'TElement, TPriority>)>)>..::..TryDequeue Method

Removes the lowest priority element from the EmbeddedPriorityQueue<(Of <(<'TElement, TPriority>)>)> and copies it and its associated priority to the element and priority arguments.

Namespace:  com.onlineobject.objectnet.server.Utils
Assembly:  ObjectNetAPI (in ObjectNetAPI.dll)

Syntax


public bool TryDequeue(

	out TElement element,

	out TPriority priority

)

Parameters

element
Type: TElement%
When this method returns, contains the removed element.
priority
Type: TPriority%
When this method returns, contains the priority associated with the removed element.

Return Value

true if the element is successfully removed; false if the EmbeddedPriorityQueue<(Of <(<'TElement, TPriority>)>)> is empty.