AsyncQueue<T>::TryEnqueue Method (T)

 

Adds an element to the tail of the queue if it has not yet completed.

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

public:
bool TryEnqueue(
	T value
)

Parameters

value
Type: T

The value to add.

Return Value

Type: System::Boolean

true if the value was added to the queue, false if the queue is already completed.

Return to top
Show: