AsyncQueue<T>::TryPeek Method (T)

 

Gets the value at the head of the queue without removing it from the queue, if it is non-empty.

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

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

Parameters

value
Type: T

Receives the value at the head of the queue, or the default value for the element type if the queue is empty.

Return Value

Type: System::Boolean

true if the queue was non-empty, otherwisefalse.

Return to top
Show: