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: TThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.