AsyncQueue<T>::TryDequeue Method (T)

 

Immediately dequeues the element from the head of the queue if one is available, otherwise returns without an element.

Namespace:   Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

public:
bool TryDequeue(
	[OutAttribute] T% value
)

Parameters

value
Type: T

The element from the head of the queue, or the default type if the queue is empty.

Return Value

Type: System::Boolean

true if an element was dequeued, false if the queue was empty.

Return to top
Show: