PriorityQueueTTryPeek(Int32, T) Method

Tries to return an object from the beginning of the PriorityQueueT without removing it.

Definition

Namespace: Gemstone.Threading.Collections
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.136 -- Release Build+f4971d0e5608ef6953fefd1c1979019c608038f6
public bool TryPeek(
	int priority,
	out T? result
)

Parameters

priority  Int32
The priority at which to peek into the queue.
result  T
When this method returns, result contains an object from the beginning of the PriorityQueueT or an unspecified value if the operation failed.

Return Value

Boolean
true if an object was returned successfully; otherwise, false.

See Also