AsyncQueue<T>.TryEnqueue Method

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)

Syntax

'Declaration
Public Function TryEnqueue ( _
    value As T _
) As Boolean
public bool TryEnqueue(
    T value
)
public:
bool TryEnqueue(
    T value
)
member TryEnqueue : 
        value:'T -> bool
public function TryEnqueue(
    value : T
) : boolean

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.

.NET Framework Security

See Also

Reference

AsyncQueue<T> Class

Microsoft.VisualStudio.Threading Namespace